summaryrefslogtreecommitdiff
path: root/community/cdcd
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-03-04 00:03:49 -0800
committerroot <root@rshg054.dnsready.net>2013-03-04 00:03:49 -0800
commit3a8d026e8e859ff4c9aa813d5f1eb2afa5663e78 (patch)
tree48288f077555b04e1dd7cec1e637aeb94a322f0c /community/cdcd
parent945c9cd1e94fab87653f84598812dec707843d26 (diff)
Mon Mar 4 00:03:48 PST 2013
Diffstat (limited to 'community/cdcd')
-rw-r--r--community/cdcd/PKGBUILD37
1 files changed, 24 insertions, 13 deletions
diff --git a/community/cdcd/PKGBUILD b/community/cdcd/PKGBUILD
index f9d78ad68..b58ecdf2c 100644
--- a/community/cdcd/PKGBUILD
+++ b/community/cdcd/PKGBUILD
@@ -1,5 +1,6 @@
-# $Id: PKGBUILD 55773 2011-09-20 06:44:34Z andrea $
-# Maintainer: dorphell <dorphell@archlinux.org>
+# $Id: PKGBUILD 85538 2013-03-03 01:33:53Z cinelli $
+# Maintainer: Federico Cinelli <cinelli@aur.archlinux.org>
+# Contributor dorphell <dorphell@archlinux.org>
# Contributor Sarah Hay <sarahhay@mb.sympatico.ca>
pkgname=cdcd
@@ -11,23 +12,33 @@ depends=('libcdaudio' 'readline')
url="http://libcdaudio.sourceforge.net/"
license=('GPL2')
install=cdcd.install
-source=("http://downloads.sourceforge.net/libcdaudio/$pkgname-$pkgver.tar.gz"
- cdcd-0.6.6-x86_64.patch)
-md5sums=('dc17f2e275c7214cb693f6abb50f29fb'
- '7c39f01408fc084e2c62da4da324370e')
+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
- patch -Np1 -i "${srcdir}"/cdcd-0.6.6-x86_64.patch
+ 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="${pkgdir}"/usr install
+ 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/share
- mv "${pkgdir}"/usr/{man,info} "${pkgdir}"/usr/share
- rm "${pkgdir}"/usr/share/info/dir
+ install -dm755 "$pkgdir/usr/bin" "$pkgdir/usr/share"
}