archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libdca / repos / extra-x86_64 / PKGBUILD
blob74dfef4048090539bdee01bc7cb37c37634a239a
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
3 pkgname=libdca
4 pkgver=0.0.7
5 pkgrel=1
6 pkgdesc="Free library for decoding DTS Coherent Acoustics streams"
7 arch=('x86_64')
8 license=('GPL')
9 url="https://www.videolan.org/developers/libdca.html"
10 depends=('sh')
11 provides=('libdts')
12 replaces=('libdts')
13 options=('!emptydirs')
14 source=(https://download.videolan.org/pub/videolan/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2)
15 sha512sums=('dae15d77d066687c882833d5bed8d65a585c1fc0277b7276563c89ddd5a83b35389ec94cca445f38af28a9b01430b72647e9afd1b08f030959e711de1a08924a')
17 prepare() {
18   cd $pkgname-$pkgver
19   ./bootstrap
22 build() {
23   cd $pkgname-$pkgver
24   ./configure --prefix=/usr --mandir=/usr/share/man --disable-static
25   make
28 package() {
29   cd $pkgname-$pkgver
30   make DESTDIR="${pkgdir}" install
32   rm -f "${pkgdir}/usr/share/man/man1"/{extract_dts,dtsdec}.1
33   ln -s dcadec.1.gz "${pkgdir}/usr/share/man/man1/dtsdec.1.gz"
34   ln -s extract_dca.1.gz "${pkgdir}/usr/share/man/man1/extract_dts.1.gz"
35   rm -f "${pkgdir}/usr/lib/libdts.a"