summaryrefslogtreecommitdiffstats
path: root/testing/py-docutils
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py-docutils')
-rw-r--r--testing/py-docutils/APKBUILD20
1 files changed, 12 insertions, 8 deletions
diff --git a/testing/py-docutils/APKBUILD b/testing/py-docutils/APKBUILD
index 1206517d4..a04a62aff 100644
--- a/testing/py-docutils/APKBUILD
+++ b/testing/py-docutils/APKBUILD
@@ -3,7 +3,7 @@
pkgname=py-docutils
_pkgname=docutils
pkgver=0.7
-pkgrel=2
+pkgrel=3
pkgdesc="Documentation Utilities for Python"
url="http://docutils.sourceforge.net/"
arch="noarch"
@@ -28,20 +28,24 @@ build() {
package() {
cd "$_builddir"
- python setup.py install --root "$pkgdir"
+ python setup.py install --root "$pkgdir" || return 1
}
doc() {
cd "$_builddir"
- for docdir in docs licenses; do
- mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/$docdir
- cp -R ./$docdir/* "$subpkgdir"/usr/share/doc/$pkgname/$docdir/
- chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/$docdir/
+ for _docdir in docs licenses; do
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/$_docdir \
+ || return 1
+ cp -R ./$_docdir/* "$subpkgdir"/usr/share/doc/$pkgname/$_docdir/ \
+ || return 1
+ chmod -R 644 "$subpkgdir"/usr/share/doc/$pkgname/$_docdir/ \
+ || return 1
done
- for doc in BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt THANKS.txt; do
- install -m644 -D $doc "$subpkgdir"/usr/share/doc/$pkgname/
+ for _doc in BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt THANKS.txt; do
+ install -m644 -D $_doc "$subpkgdir"/usr/share/doc/$pkgname/ \
+ || return 1
done
# Fix subdir perms