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 | |
parent | 55e5ad450a3b06255d897cb3a77edf768e9716d5 (diff) | |
download | aur-1862aa089b856429b2ed41b8348d6ed7264129d0.tar.gz |
Özgür changed docs from a binary target
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 14 insertions, 18 deletions
@@ -1,9 +1,9 @@ # Generated by makepkg 4.2.1 -# Sun Sep 20 05:30:44 UTC 2015 +# Mon Sep 21 19:34:22 UTC 2015 pkgbase = cmdpack - pkgdesc = Collection of command line utilities, most for emulation or disk images. (bin2iso bincomp brrrip byteshuf byteswap cdpatch ecm fakecrc hax65816 id3point pecompat rels screamf subfile uips usfv vb2rip wordadd zerofill docs) + pkgdesc = Collection of command line utilities, most for emulation or disk images. (bin2iso bincomp brrrip byteshuf byteswap cdpatch ecm fakecrc hax65816 id3point pecompat rels screamf subfile uips usfv vb2rip wordadd zerofill) pkgver = 1.03 - pkgrel = 4 + pkgrel = 5 url = http://www.neillcorlett.com/cmdpack/ arch = i686 arch = x86_64 @@ -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 +}" |