diff options
author | Mike Swanson | 2015-09-21 19:10:02 -0700 |
---|---|---|
committer | Mike Swanson | 2015-09-21 19:10:02 -0700 |
commit | 1862aa089b856429b2ed41b8348d6ed7264129d0 (patch) | |
tree | 1398bc53942667668d27feb58b7da3d2f2bbf101 /PKGBUILD | |
parent | 55e5ad450a3b06255d897cb3a77edf768e9716d5 (diff) | |
download | aur-1862aa089b856429b2ed41b8348d6ed7264129d0.tar.gz |
Özgür changed docs from a binary target
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 11 insertions, 15 deletions
@@ -27,15 +27,11 @@ _utils=( 'vb2rip' 'wordadd' 'zerofill' - 'docs' # This is not a utility, it just adds docs and licenses. ) -for _tool in ${_utils[@]}; do - pkgname+=("$pkgbase-$_tool") -done +for _tool in ${_utils[@]}; do pkgname+=("$pkgbase-$_tool"); done && pkgname+=("$pkgbase-docs") pkgver=1.03 -pkgrel=4 -pkgdesc="Collection of command line utilities, most for emulation or disk images. - (${_utils[*]})" +pkgrel=5 +pkgdesc="Collection of command line utilities, most for emulation or disk images. (${_utils[*]})" arch=('i686' 'x86_64') url="http://www.neillcorlett.com/$pkgbase/" license=('GPL3') @@ -47,7 +43,7 @@ build() { for _tool in "${_utils[@]}"; do if [[ "$_tool" == "ecm" ]]; then gcc $CFLAGS -Wall "$_tool.c" -s -o "bin2ecm" - elif ! [[ "$_tool" == "docs" ]]; then + else gcc $CFLAGS -Wall "$_tool.c" -s -o "$_tool" fi done @@ -82,16 +78,16 @@ for _tool in "${_utils[@]}"; do conflicts=('ucommon') install -Dm0755 ./src/$_tool \${pkgdir}/usr/bin/$_tool }" - elif [[ "$_tool" == "docs" ]]; then - eval "package_$pkgbase-$_tool() { - cd \$srcdir/\${pkgbase}-\${pkgver}-src/ - pkgdesc='$pkgbase documents' - install -Dm0644 ./doc/cmdpack.txt \${pkgdir}/usr/share/doc/\${pkgbase}/cmdpack.txt - install -Dm0644 ./doc/gpl.txt \${pkgdir}/usr/share/licenses/\${pkgbase}/LICENSE - }" else eval "$add_pkg_func install -Dm0755 ./src/$_tool \${pkgdir}/usr/bin/$_tool }" fi done + +eval "package_$pkgbase-docs() { + cd \$srcdir/\${pkgbase}-\${pkgver}-src/ + pkgdesc='$pkgbase documents' + install -Dm0644 ./doc/cmdpack.txt \${pkgdir}/usr/share/doc/\${pkgbase}/cmdpack.txt + install -Dm0644 ./doc/gpl.txt \${pkgdir}/usr/share/licenses/\${pkgbase}/LICENSE +}" |