Date: Tuesday, March 12, 2013 @ 10:44:15 Author: cinelli Revision: 86147
fixing Added: cdcd/repos/community-i686/PKGBUILD cdcd/repos/community-i686/cdcd-0.6.6-x86_64.patch cdcd/repos/community-i686/cdcd.install Deleted: cdcd/repos/community-x86_64/PKGBUILD ----------------------------------------+ community-i686/PKGBUILD | 44 +++++++++++++++++++++++++++++++ community-i686/cdcd-0.6.6-x86_64.patch | 11 +++++++ community-i686/cdcd.install | 20 ++++++++++++++ community-x86_64/PKGBUILD | 44 ------------------------------- 4 files changed, 75 insertions(+), 44 deletions(-) Added: community-i686/PKGBUILD =================================================================== --- community-i686/PKGBUILD (rev 0) +++ community-i686/PKGBUILD 2013-03-12 09:44:15 UTC (rev 86147) @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 86126 2013-03-12 06:11:57Z cinelli $ +# Maintainer: Federico Cinelli <[email protected]> +# Contributor dorphell <[email protected]> +# Contributor Sarah Hay <[email protected]> + +pkgname=cdcd +pkgver=0.6.6 +pkgrel=6 +pkgdesc="A commandline cd-player" +arch=('i686' 'x86_64') +depends=('libcdaudio' 'readline') +url="http://libcdaudio.sourceforge.net/" +license=('GPL2') +install=cdcd.install +source=("http://downloads.sourceforge.net/libcdaudio/$pkgname-$pkgver.tar.gz") +md5sums=('dc17f2e275c7214cb693f6abb50f29fb') + +if [[ "$CARCH" == "x86_64" ]]; then + source+=("cdcd-0.6.6-$CARCH.patch") + md5sums+=('7c39f01408fc084e2c62da4da324370e') +fi + +build() { + cd "$srcdir/$pkgname-$pkgver" + + if [[ "$CARCH" == "x86_64" ]]; then + patch -Np1 -i "$srcdir/cdcd-0.6.6-$CARCH.patch" + fi + + ./configure --prefix=/usr + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make PREFIX=/usr DESTDIR="$pkgdir" install + + mv "$pkgdir/usr/info" "$pkgdir/usr/share/" + mv "$pkgdir/usr/man/" "$pkgdir/usr/share/" + rm "$pkgdir/usr/share/dir" + + install -dm755 "$pkgdir/usr/bin" "$pkgdir/usr/share" +} Added: community-i686/cdcd-0.6.6-x86_64.patch =================================================================== --- community-i686/cdcd-0.6.6-x86_64.patch (rev 0) +++ community-i686/cdcd-0.6.6-x86_64.patch 2013-03-12 09:44:15 UTC (rev 86147) @@ -0,0 +1,11 @@ +--- a/config.sub 2009-09-15 00:42:36.000000000 -0700 ++++ b/config.sub 2009-09-15 00:42:36.000000000 -0700 +@@ -155,7 +155,7 @@ + | alpha | we32k | ns16k | clipper | i370 | sh \ + | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \ + | pdp11 | mips64el | mips64orion | mips64orionel \ +- | sparc | sparclet | sparclite | sparc64) ++ | sparc | sparclet | sparclite | sparc64 | x86_64-*) + basic_machine=$basic_machine-unknown + ;; + # We use `pc' rather than `unknown' Added: community-i686/cdcd.install =================================================================== --- community-i686/cdcd.install (rev 0) +++ community-i686/cdcd.install 2013-03-12 09:44:15 UTC (rev 86147) @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(cdcd.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} Deleted: community-x86_64/PKGBUILD =================================================================== --- community-x86_64/PKGBUILD 2013-03-12 09:37:00 UTC (rev 86146) +++ community-x86_64/PKGBUILD 2013-03-12 09:44:15 UTC (rev 86147) @@ -1,44 +0,0 @@ -# $Id$ -# Maintainer: Federico Cinelli <[email protected]> -# Contributor dorphell <[email protected]> -# Contributor Sarah Hay <[email protected]> - -pkgname=cdcd -pkgver=0.6.6 -pkgrel=6 -pkgdesc="A commandline cd-player" -arch=('i686' 'x86_64') -depends=('libcdaudio' 'readline') -url="http://libcdaudio.sourceforge.net/" -license=('GPL2') -install=cdcd.install -source=("http://downloads.sourceforge.net/libcdaudio/$pkgname-$pkgver.tar.gz") -md5sums=('dc17f2e275c7214cb693f6abb50f29fb') - -if [[ "$CARCH" == "x86_64" ]]; then - source+=("cdcd-0.6.6-$CARCH.patch") - md5sums+=('7c39f01408fc084e2c62da4da324370e') -fi - -build() { - cd "$srcdir/$pkgname-$pkgver" - - if [[ "$CARCH" == "x86_64" ]]; then - patch -Np1 -i "$srcdir/cdcd-0.6.6-$CARCH.patch" - fi - - ./configure --prefix=/usr - make -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - - make PREFIX=/usr DESTDIR="$pkgdir" install - - mv "$pkgdir/usr/info" "$pkgdir/usr/share/" - mv "$pkgdir/usr/man/" "$pkgdir/usr/share/" - rm "$pkgdir/usr/share/dir" - - install -dm755 "$pkgdir/usr/bin" "$pkgdir/usr/share" -}
