summaryrefslogtreecommitdiff
path: root/user/a52dec/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-21 02:33:18 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-21 02:33:18 -0500
commit9d3f7ee760fc142660e85635c69777919304ec96 (patch)
tree8c7a7b56bc0b46d95dcfc5a7d522beaca0fde0ce /user/a52dec/APKBUILD
parent8da9bf0271b2d3fc97222b6c5d8b054b42afc245 (diff)
downloadpackages-9d3f7ee760fc142660e85635c69777919304ec96.tar.gz
packages-9d3f7ee760fc142660e85635c69777919304ec96.tar.bz2
packages-9d3f7ee760fc142660e85635c69777919304ec96.tar.xz
packages-9d3f7ee760fc142660e85635c69777919304ec96.zip
user/a52dec: pull in, fix up, modernise
Diffstat (limited to 'user/a52dec/APKBUILD')
-rw-r--r--user/a52dec/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/user/a52dec/APKBUILD b/user/a52dec/APKBUILD
new file mode 100644
index 000000000..9296f3ad0
--- /dev/null
+++ b/user/a52dec/APKBUILD
@@ -0,0 +1,47 @@
+# Maintainer:
+pkgname=a52dec
+pkgver=0.7.4
+pkgrel=8
+pkgdesc="Library for decoding ATSC A/52 streams"
+url="http://liba52.sourceforge.net/"
+arch="all"
+license="GPL-2.0+"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="autoconf automake libtool linux-headers"
+source="http://liba52.sourceforge.net/files/$pkgname-$pkgver.tar.gz
+ automake.patch
+ $pkgname-$pkgver-build.patch
+ "
+
+prepare() {
+ cd "$builddir"
+ default_prepare
+ update_config_sub
+ libtoolize --force && \
+ aclocal && autoconf && automake --add-missing
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --enable-shared
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -m644 liba52/a52_internal.h "$pkgdir"/usr/include/a52dec/
+}
+
+sha512sums="4b26fe9492f218b775fb190b76ecf06edaeb656adfe6dcbd24d0a0f86871c3ba917edb88a398eb12dccedaa1605b6f0a0be06b09f9fddd9a46e457b7dd244848 a52dec-0.7.4.tar.gz
+4a832b7e13e19ba00b1fcf5ddbdcca416ee71818f2fd77f19114d7f98fb41dbd04f906eb78f403dc27324d7e8bd8ec4e0b670139a27b49a7acdb2e3cf88d8d12 automake.patch
+eee40a2871c00fc704fa49d3192a41ceadc4cf7e80d7d7cf368aa2a3e7ebb786f39ef835bdffca5685bf054316a9bacf87556b9a0c90868dbf29e7269873806e a52dec-0.7.4-build.patch"