Date: Tuesday, August 27, 2013 @ 13:22:54 Author: arodseth Revision: 96384
upgpkg: python-werkzeug 0.9.1-3 Modified: python-werkzeug/trunk/PKGBUILD ----------+ PKGBUILD | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2013-08-27 11:20:11 UTC (rev 96383) +++ PKGBUILD 2013-08-27 11:22:54 UTC (rev 96384) @@ -16,20 +16,25 @@ source=("http://pypi.python.org/packages/source/W/Werkzeug/Werkzeug-$pkgver.tar.gz") sha256sums=('d892523bb6110a8ff8bad51982bb76a9c168659b2d58369806fd9bf049b65669') +prepare() { + cp -r "Werkzeug-$pkgver" "python-werkzeug-$pkgver" + cp -r "Werkzeug-$pkgver" "python2-werkzeug-$pkgver" +} + build_python-werkzeug() { - cd "Werkzeug-$pkgver" + cd "$pkgname-$pkgver" python setup.py build } build_python2-werkzeug() { - cd "Werkzeug-$pkgver" + cd "$pkgname-$pkgver" python2 setup.py build } check_python-werkzeug() { - cd "Werkzeug-$pkgver" + cd "$pkgname-$pkgver" # check currently fails python setup.py test || true @@ -36,7 +41,7 @@ } check_python2-werkzeug() { - cd "Werkzeug-$pkgver" + cd "$pkgname-$pkgver" # check currently fails python2 setup.py test || true @@ -44,7 +49,7 @@ package_python-werkzeug() { depends+=('python') - cd "Werkzeug-$pkgver" + cd "$pkgname-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" @@ -52,7 +57,7 @@ package_python2-werkzeug() { depends+=('python2') - cd "Werkzeug-$pkgver" + cd "$pkgname-$pkgver" python2 setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"