diff options
Diffstat (limited to 'main/py-docutils/APKBUILD')
-rw-r--r-- | main/py-docutils/APKBUILD | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/main/py-docutils/APKBUILD b/main/py-docutils/APKBUILD index d7dfe79a9d..d2519a09ba 100644 --- a/main/py-docutils/APKBUILD +++ b/main/py-docutils/APKBUILD @@ -46,24 +46,19 @@ _py() { } doc() { - cd "$_builddir" + pkgdesc="$pkgdesc (documentation)" + local docdir="$subpkgdir/usr/share/doc/$pkgname" + local licdir="$subpkgdir/usr/share/licenses/$pkgname" - 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 + cd "$builddir" - 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 + mkdir -p "$docdir" + cp -R docs/* "$docdir"/ || return 1 + cp *.txt "$docdir"/ || return 1 - # Fix subdir perms - find "$subpkgdir"/usr/share/doc/$pkgname/ -type d -exec chmod 755 '{}' \; + mkdir -p "$licdir" + rm -f licenses/docutils.conf + cp licenses/* "$licdir"/ } md5sums="4622263b62c5c771c03502afa3157768 docutils-0.12.tar.gz" |