Date: Wednesday, April 23, 2014 @ 10:16:03 Author: tredaelli Revision: 110023
upgpkg: python2-pbkdf2 1.3-1 Modified: python2-pbkdf2/trunk/PKGBUILD ----------+ PKGBUILD | 6 ++++++ 1 file changed, 6 insertions(+) Modified: PKGBUILD =================================================================== --- PKGBUILD 2014-04-23 08:12:12 UTC (rev 110022) +++ PKGBUILD 2014-04-23 08:16:03 UTC (rev 110023) @@ -11,6 +11,7 @@ url="https://www.dlitz.net/software/python-pbkdf2/" license=('MIT') depends=('python2') +makedepends=('python2-setuptools') optdepends=('python2-crypto: to make use of PyCrypto`s HMAC and SHA') source=("http://pypi.python.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz" LICENSE) @@ -17,6 +18,11 @@ md5sums=('40cda566f61420490206597243dd869f' '180c44cc3999239185d0523570c61fa8') +prepare() { + cd "$srcdir/$_pkgname-$pkgver" + find . -type f -name "*.py" -exec sed -i 's#/usr/bin/python#/usr/bin/python2#g' {} + +} + package() { cd "$srcdir/$_pkgname-$pkgver" python2 setup.py install --prefix=/usr --root="$pkgdir" -O1