diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-19 14:42:44 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-19 15:36:50 +0100 |
commit | 4d1bfb6677837a7ab97a1d82194eba821145e73f (patch) | |
tree | 5e54e8832a4d014cabfee2927c9f76383ab5059f /main | |
parent | 56c95218ffa2c148187ea8df7f447b75d6e09b2f (diff) | |
download | aports-4d1bfb6677837a7ab97a1d82194eba821145e73f.tar.bz2 aports-4d1bfb6677837a7ab97a1d82194eba821145e73f.tar.xz |
main/py-docutils: improve abuild - doc subpackage
Diffstat (limited to 'main')
-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" |