[arch-commits] Commit in scons/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Fri Oct 20 19:05:31 UTC 2017


    Date: Friday, October 20, 2017 @ 19:05:29
  Author: arojas
Revision: 308288

Switch back to python2 for now, some projects' SconScripts don't support python3 syntax

Modified:
  scons/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-10-20 17:57:13 UTC (rev 308287)
+++ PKGBUILD	2017-10-20 19:05:29 UTC (rev 308288)
@@ -8,12 +8,12 @@
 
 pkgname=scons
 pkgver=3.0.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Extensible Python-based build utility"
 arch=('any')
 url="http://scons.org"
 license=('MIT')
-depends=('python')
+depends=('python2')
 source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
         scons-support-python2-syntax.patch::"https://github.com/SConsProject/scons/commit/2e0de3c5.patch")
 md5sums=('1c99878d0eaf9b768b50721e913142d3'
@@ -25,14 +25,18 @@
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname-$pkgver
 
-  python setup.py install --standard-lib \
+  python2 setup.py install --standard-lib \
                           --prefix=/usr \
                           --install-data=/usr/share \
                           --optimize=1 \
                           --root="$pkgdir"
 
+  # fix for python 2.7
+  sed -i 's:^#!.*bin/env python:#!/usr/bin/env python2:' \
+    "$pkgdir"/usr/bin/*
+
   install -Dm644 LICENSE.txt \
     "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list