summaryrefslogtreecommitdiff
path: root/user/a52dec/APKBUILD
blob: 8d552e47db664813cac16d2b8e97294d80df70ee (plain) (blame)
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
34
35
# Maintainer: Zach van Rijn <me@zv.io>
pkgname=a52dec
pkgver=0.8.0
pkgrel=0
pkgdesc="Library for decoding ATSC A/52 streams"
url="https://git.adelielinux.org/community/a52dec/-/wikis/home"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="autoconf automake libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="https://distfiles.adelielinux.org/source/$pkgname/$pkgname-$pkgver.tar.gz
	fix-globals-test-x86-pie.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-shared
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -m644 liba52/a52_internal.h "$pkgdir"/usr/include/a52dec/
}

sha512sums="dbabc293ac5554b13ebbe43ca56278cb81478c5cc98b04c6805f5fc517a1484b0b7d23f5d6a64580d781f2976ff79e0646d9a1ebd48ab14005aa8d4128ecfeeb  a52dec-0.8.0.tar.gz
b8dbcdc817531bc737ee689a1a8fc76ba40462397ca95286fe834795a09df04cd68010ca6105c8e56392328bec00c838372ab28324c5428421d44824109ea6ec  fix-globals-test-x86-pie.patch"