[arch-commits] Commit in cdcd/trunk (PKGBUILD)
Federico Cinelli
cinelli at nymeria.archlinux.org
Sun Mar 3 01:32:10 UTC 2013
Date: Sunday, March 3, 2013 @ 02:32:10
Author: cinelli
Revision: 85537
upgpkg: cdcd 0.6.6-6
Modified:
cdcd/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++++++++++++++++++------------
1 file changed, 23 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-03-03 00:51:29 UTC (rev 85536)
+++ PKGBUILD 2013-03-03 01:32:10 UTC (rev 85537)
@@ -1,5 +1,6 @@
# $Id$
-# Maintainer: dorphell <dorphell at archlinux.org>
+# Maintainer: Federico Cinelli <cinelli at aur.archlinux.org>
+# Contributor dorphell <dorphell at archlinux.org>
# Contributor Sarah Hay <sarahhay at mb.sympatico.ca>
pkgname=cdcd
@@ -11,23 +12,33 @@
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"
}
More information about the arch-commits
mailing list