summaryrefslogtreecommitdiff
path: root/extra/libdca/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-11 23:14:33 +0000
committerroot <root@rshg054.dnsready.net>2011-09-11 23:14:33 +0000
commit1d2f1a1e70011a41d17f2f16d5e90c491ccdabb8 (patch)
tree4f22b6f4f4737987b4eec85fbc027684f209df2e /extra/libdca/PKGBUILD
parent1dc1efa50ce9926a6ed832bda2ebe3319485ac09 (diff)
Sun Sep 11 23:14:33 UTC 2011
Diffstat (limited to 'extra/libdca/PKGBUILD')
-rw-r--r--extra/libdca/PKGBUILD25
1 files changed, 16 insertions, 9 deletions
diff --git a/extra/libdca/PKGBUILD b/extra/libdca/PKGBUILD
index 5a8e195d2..bc42228f3 100644
--- a/extra/libdca/PKGBUILD
+++ b/extra/libdca/PKGBUILD
@@ -1,26 +1,33 @@
-# $Id: PKGBUILD 49760 2009-08-15 15:07:38Z jgc $
+# $Id: PKGBUILD 137736 2011-09-10 14:39:31Z pierre $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
pkgname=libdca
pkgver=0.0.5
-pkgrel=2
+pkgrel=3
pkgdesc="Free library for decoding DTS Coherent Acoustics streams"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
license=('GPL')
url="http://www.videolan.org/developers/libdca.html"
-source=(http://download.videolan.org/pub/videolan/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2)
+depends=('sh')
provides=('libdts')
replaces=('libdts')
options=('!libtool' '!emptydirs')
+source=("http://download.videolan.org/pub/videolan/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2")
md5sums=('dab6b2795c66a82a6fcd4f8343343021')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
- ./configure --prefix=/usr --mandir=/usr/share/man || return 1
- make || return 1
- make DESTDIR="${pkgdir}" install || return 1
+ ./configure --prefix=/usr --mandir=/usr/share/man
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
rm -f "${pkgdir}/usr/share/man/man1"/{extract_dts,dtsdec}.1
- ln -s dcadec.1.gz "${pkgdir}/usr/share/man/man1/dtsdec.1.gz" || return 1
- ln -s extract_dca.1.gz "${pkgdir}/usr/share/man/man1/extract_dts.1.gz" || return 1
+ ln -s dcadec.1.gz "${pkgdir}/usr/share/man/man1/dtsdec.1.gz"
+ ln -s extract_dca.1.gz "${pkgdir}/usr/share/man/man1/extract_dts.1.gz"
+ # remove dangling symlink
+ rm "${pkgdir}/usr/lib/libdts.a"
}