summaryrefslogtreecommitdiff
path: root/community/cdcd/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/cdcd/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/cdcd/PKGBUILD')
-rw-r--r--community/cdcd/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/community/cdcd/PKGBUILD b/community/cdcd/PKGBUILD
new file mode 100644
index 000000000..784863a2c
--- /dev/null
+++ b/community/cdcd/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id: PKGBUILD 86149 2013-03-12 09:55:52Z cinelli $
+# Maintainer: Federico Cinelli <cinelli@aur.archlinux.org>
+# Contributor dorphell <dorphell@archlinux.org>
+# Contributor Sarah Hay <sarahhay@mb.sympatico.ca>
+
+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"
+}