Skip to content

Instantly share code, notes, and snippets.

@aroig

aroig/ladish.patch

Created Mar 24, 2016
Embed
What would you like to do?
From dfc1bd475ff7bbbeb60f70d8b05cc7be3239521c Mon Sep 17 00:00:00 2001
From: Abdo Roig-Maranges <abdo.roig@gmail.com>
Date: Thu, 24 Mar 2016 11:04:13 +0100
Subject: [PATCH] make environment variables available to build and package
---
PKGBUILD | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/PKGBUILD b/PKGBUILD
index 78f30a6..d780741 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,8 +17,6 @@ sha512sums=('bc0854e2b72837e42f2c4f6d6038b24c1918bebefda6a3dd2cfe2b0b09a7ebd8716
prepare() {
cd "${srcdir}/${pkgname}-dec0b7d"
- export PYTHON=/usr/bin/python2
- export CXX='g++ -std=c++11'
sed -i "1s/python/&2/" ladish_control
sed -i "s|\(RELEASE = \).*|\1True|" wscript
@@ -28,6 +26,10 @@ prepare() {
build() {
cd "${srcdir}/${pkgname}-dec0b7d"
+
+ export PYTHON=/usr/bin/python2
+ export CXX='g++ -std=c++11'
+
python2 waf configure --prefix=/usr \
--enable-liblash \
--enable-pylash
@@ -36,5 +38,9 @@ build() {
package() {
cd "${srcdir}/${pkgname}-dec0b7d"
+
+ export PYTHON=/usr/bin/python2
+ export CXX='g++ -std=c++11'
+
python2 waf install --destdir="${pkgdir}/"
}
--
2.7.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.