Skip to content

Instantly share code, notes, and snippets.

@aroig
Created March 24, 2016 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aroig/f3b6d5a0af32d987e59e to your computer and use it in GitHub Desktop.
Save aroig/f3b6d5a0af32d987e59e to your computer and use it in GitHub Desktop.
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