summaryrefslogtreecommitdiffstats
path: root/main/a52dec/APKBUILD
blob: 8fbb0b14a6c3982414750c5f4fb4827feb061650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=a52dec
pkgver=0.7.4
pkgrel=4
pkgdesc="liba52 is a free library for decoding ATSC A/52 streams."
url="http://liba52.sourceforge.net/"
arch="all"
license="GPL2"
subpackages="$pkgname-dev $pkgname-doc"
depends=
makedepends="autoconf automake libtool"
source="http://liba52.sourceforge.net/files/$pkgname-$pkgver.tar.gz
	$pkgname-$pkgver-build.patch"

build () 
{ 
	cd "$srcdir"/$pkgname-$pkgver
	patch -Np1 -i "$srcdir"/a52dec-0.7.4-build.patch || return 1
	./bootstrap || return 1
	./configure --prefix=/usr \
		--enable-shared \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la || return 1
	install -m644 liba52/a52_internal.h "$pkgdir"/usr/include/a52dec/ || return 1
}
md5sums="caa9f5bc44232dc8aeea773fea56be80  a52dec-0.7.4.tar.gz
fa16f224a7dceb7613824380abef0052  a52dec-0.7.4-build.patch"