aboutsummaryrefslogtreecommitdiffstats
path: root/main/a52dec
diff options
context:
space:
mode:
authortmpfile <tmpfile@users.noreply.github.com>2017-09-06 10:28:51 -0300
committerTimo Teräs <timo.teras@iki.fi>2017-09-07 07:58:13 +0000
commitf55713fe93e77be07bd5b9cb7d02dc19584bec29 (patch)
treea2f3db918373b490408caafeb04632c30ea504f8 /main/a52dec
parentecd0caee5c25ed1020606c8cfea004a31d8f514a (diff)
downloadaports-f55713fe93e77be07bd5b9cb7d02dc19584bec29.tar.bz2
aports-f55713fe93e77be07bd5b9cb7d02dc19584bec29.tar.xz
main/a52dec: modernize
Diffstat (limited to 'main/a52dec')
-rw-r--r--main/a52dec/APKBUILD36
1 files changed, 12 insertions, 24 deletions
diff --git a/main/a52dec/APKBUILD b/main/a52dec/APKBUILD
index 3da172c9a6..61aae61a05 100644
--- a/main/a52dec/APKBUILD
+++ b/main/a52dec/APKBUILD
@@ -7,48 +7,36 @@ url="http://liba52.sourceforge.net/"
arch="all"
license="GPL2+"
subpackages="$pkgname-dev $pkgname-doc"
-depends=""
makedepends="autoconf automake libtool linux-headers"
-source="http://liba52.sourceforge.net/files/a52dec-$pkgver.tar.gz
+source="http://liba52.sourceforge.net/files/$pkgname-$pkgver.tar.gz
automake.patch
- $pkgname-$pkgver-build.patch"
+ $pkgname-$pkgver-build.patch
+ "
-_builddir="$srcdir"/a52dec-$pkgver
+builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
- update_config_sub || return 1
+ default_prepare
+ update_config_sub
libtoolize --force && \
aclocal && autoconf && automake --add-missing
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --enable-shared \
- || return 1
- make || return 1
+ --enable-shared
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
- install -m644 liba52/a52_internal.h "$pkgdir"/usr/include/a52dec/ || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -m644 liba52/a52_internal.h "$pkgdir"/usr/include/a52dec/
}
-md5sums="caa9f5bc44232dc8aeea773fea56be80 a52dec-0.7.4.tar.gz
-8ebfc507f7efa16ec2dcf8f6b11c985d automake.patch
-fa16f224a7dceb7613824380abef0052 a52dec-0.7.4-build.patch"
-sha256sums="a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33 a52dec-0.7.4.tar.gz
-6fd5085dfa857c095f028224918e462fca14d8a179a0b4552d294293dc76e475 automake.patch
-00a094d6178cd21bfc2303ff2ac91ce656810e6fef50e77ab30e18d0f4d4a650 a52dec-0.7.4-build.patch"
sha512sums="4b26fe9492f218b775fb190b76ecf06edaeb656adfe6dcbd24d0a0f86871c3ba917edb88a398eb12dccedaa1605b6f0a0be06b09f9fddd9a46e457b7dd244848 a52dec-0.7.4.tar.gz
4a832b7e13e19ba00b1fcf5ddbdcca416ee71818f2fd77f19114d7f98fb41dbd04f906eb78f403dc27324d7e8bd8ec4e0b670139a27b49a7acdb2e3cf88d8d12 automake.patch
eee40a2871c00fc704fa49d3192a41ceadc4cf7e80d7d7cf368aa2a3e7ebb786f39ef835bdffca5685bf054316a9bacf87556b9a0c90868dbf29e7269873806e a52dec-0.7.4-build.patch"