diff options
author | Matt Smith <mcs@darkregion.net> | 2011-03-23 16:01:23 -0500 |
---|---|---|
committer | Matt Smith <mcs@darkregion.net> | 2011-03-23 16:01:23 -0500 |
commit | c1a0116d48216ee0d64ce2633e26e7d40680b35d (patch) | |
tree | 66ec633394b717ec22c2b1a17df39352c04de6a7 /testing | |
parent | 628d8b09e0cb616c53caa046ad45b240ece5d575 (diff) | |
download | aports-c1a0116d48216ee0d64ce2633e26e7d40680b35d.tar.bz2 aports-c1a0116d48216ee0d64ce2633e26e7d40680b35d.tar.xz |
testing/py-jinja2: improved APKBUILD
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-jinja2/APKBUILD | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/testing/py-jinja2/APKBUILD b/testing/py-jinja2/APKBUILD index b5d4ffc96..5eaf70cf0 100644 --- a/testing/py-jinja2/APKBUILD +++ b/testing/py-jinja2/APKBUILD @@ -3,7 +3,7 @@ pkgname=py-jinja2 _pkgname=Jinja2 pkgver=2.5.5 -pkgrel=1 +pkgrel=2 pkgdesc="A small but fast and easy to use stand-alone template engine written in pure python." url="http://jinja.pocoo.org/" arch="noarch" @@ -28,34 +28,39 @@ build() { package() { cd "$_builddir" - python setup.py install --root "$pkgdir" + python setup.py install --root "$pkgdir" || return 1 } doc() { cd "$_builddir" - mkdir -p "$subpkgdir"/usr/share/doc/$pkgname + mkdir -p "$subpkgdir"/usr/share/doc/$pkgname || return 1 for _doc in AUTHORS CHANGES LICENSE; do - install -Dm644 $_doc "$subpkgdir"/usr/share/doc/$pkgname/$_doc + install -Dm644 $_doc "$subpkgdir"/usr/share/doc/$pkgname/$_doc \ + || return 1 done # Note: The documentation in the docs directory needs to be generated # by py-sphinx, however, this package (py-jinja2) is a dependency of # Sphinx itself! - mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/docs - cp -R ./docs/* "$subpkgdir"/usr/share/doc/$pkgname/docs/ - chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/docs/ + mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/docs || return 1 + cp -R ./docs/* "$subpkgdir"/usr/share/doc/$pkgname/docs/ || return 1 + chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/docs/ || return 1 - mkdir -p "$subpkgdir"/usr/share/$pkgname + mkdir -p "$subpkgdir"/usr/share/$pkgname || return 1 for _dir in artwork examples ext; do - mkdir -p "$subpkgdir"/usr/share/$pkgname/$_dir/ - cp -R ./$_dir/* "$subpkgdir"/usr/share/$pkgname/$_dir/ - chmod -R 644 "$subpkgdir"/usr/share/$pkgname/$_dir/ + mkdir -p "$subpkgdir"/usr/share/$pkgname/$_dir/ || return 1 + cp -R ./$_dir/* "$subpkgdir"/usr/share/$pkgname/$_dir/ \ + || return 1 + chmod -R 644 "$subpkgdir"/usr/share/$pkgname/$_dir/ \ + || return 1 done # Fix subdir perms - find "$subpkgdir"/usr/share/doc/$pkgname/ -type d -exec chmod 755 '{}' \; - find "$subpkgdir"/usr/share/$pkgname/ -type d -exec chmod 755 '{}' \; + find "$subpkgdir"/usr/share/doc/$pkgname/ -type d \ + -exec chmod 755 '{}' \; || return 1 + find "$subpkgdir"/usr/share/$pkgname/ -type d \ + -exec chmod 755 '{}' \; || return 1 } md5sums="83b20c1eeb31f49d8e6392efae91b7d5 Jinja2-2.5.5.tar.gz" |