From 1d696ceb329c5f6e5d78f1a364c70b234a3d3f43 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Mon, 5 May 2014 19:30:35 +0000
Subject: libdca: update pkg

---
 abs/core/libdca/PKGBUILD | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)

diff --git a/abs/core/libdca/PKGBUILD b/abs/core/libdca/PKGBUILD
index 4794c02..2d05c00 100644
--- a/abs/core/libdca/PKGBUILD
+++ b/abs/core/libdca/PKGBUILD
@@ -1,22 +1,31 @@
-# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# $Id$
 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
 
 pkgname=libdca
 pkgver=0.0.5
-pkgrel=1
+pkgrel=4
 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)
-md5sums=('dab6b2795c66a82a6fcd4f8343343021')
+depends=('sh')
 provides=('libdts')
 replaces=('libdts')
-options=('!libtool' '!emptydirs')
+options=('!emptydirs')
+source=("http://download.videolan.org/pub/videolan/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2")
+md5sums=('dab6b2795c66a82a6fcd4f8343343021')
 
 build() {
-  cd $startdir/src/$pkgname-$pkgver
-  ./configure --prefix=/usr
-  make || return 1
-  make DESTDIR=$startdir/pkg install
+  cd $pkgname-$pkgver
+  ./configure --prefix=/usr --mandir=/usr/share/man --disable-static
+  make
+}
+
+package() {
+  cd $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"
+  ln -s extract_dca.1.gz "${pkgdir}/usr/share/man/man1/extract_dts.1.gz"
 }
-- 
cgit v0.12

