[arch-commits] Commit in scons/trunk (PKGBUILD)
Ray Rashif
schiv at archlinux.org
Fri Sep 10 14:41:36 UTC 2010
Date: Friday, September 10, 2010 @ 10:41:36
Author: schiv
Revision: 90304
upgpkg: scons 1.3.1 -> 2.0.1
Previous commit by remy already rebuilt for python(2).
Modified:
scons/trunk/PKGBUILD
----------+
PKGBUILD | 28 ++++++++++++++++++----------
1 file changed, 18 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-09-10 12:46:31 UTC (rev 90303)
+++ PKGBUILD 2010-09-10 14:41:36 UTC (rev 90304)
@@ -1,25 +1,33 @@
# $Id$
+# Maintainer: Ray Rashif <schiv at archlinux.org>
# Contributor: damir <damir at archlinux.org>
# Contributor: Lukas Sabota <punkrockguy318 at comcast.net>
# Contributor: Brice Carpentier <brice at dlfp.org>
pkgname=scons
-pkgver=1.3.1
-pkgrel=2
+pkgver=2.0.1
+pkgrel=1
pkgdesc="Extensible Python-based build utility"
arch=('any')
url="http://scons.org"
-license=('custom')
+license=('MIT')
depends=('python2')
-source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz)
-md5sums=('e3411dc316b2f6be5226cd71dbdeb0c1')
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
+md5sums=('beca648b894cdbf85383fffc79516d18')
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "$srcdir/$pkgname-$pkgver"
python2 setup.py install --standard-lib \
- --prefix=/usr \
- --install-data=/usr/share --root="${pkgdir}" || return 1
- sed -i -e 's#env python#env python2#' "${pkgdir}"/usr/bin/*
- install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
+ --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 -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list