diff options
author | Breno Leitao <breno.leitao@gmail.com> | 2017-04-28 17:49:06 +0000 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-28 21:54:42 +0200 |
commit | ab4c11c1b276fd874a592f2e45362821f6193fd7 (patch) | |
tree | 134a9510c21507226030927174f6f1992e6a6ed2 /main/libtxc_dxtn | |
parent | 07a39fa95eef92beb52544f089ed1718208e44be (diff) | |
download | aports-ab4c11c1b276fd874a592f2e45362821f6193fd7.tar.bz2 aports-ab4c11c1b276fd874a592f2e45362821f6193fd7.tar.xz |
main/libtxc_dxtn: modernize abuild
Instead of applying the patches "manually" using default_prepare()
helpers.
Diffstat (limited to 'main/libtxc_dxtn')
-rw-r--r-- | main/libtxc_dxtn/APKBUILD | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/main/libtxc_dxtn/APKBUILD b/main/libtxc_dxtn/APKBUILD index 3eb1eb3f91..4e7ff07dbd 100644 --- a/main/libtxc_dxtn/APKBUILD +++ b/main/libtxc_dxtn/APKBUILD @@ -14,21 +14,15 @@ install="" subpackages="$pkgname-dev" source="http://cgit.freedesktop.org/~mareko/libtxc_dxtn/snapshot/libtxc_dxtn-$pkgver.tar.bz2" -_builddir="$srcdir"/libtxc_dxtn-$pkgver +builddir="$srcdir"/libtxc_dxtn-$pkgver prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare libtoolize --force && aclocal -I m4 && autoconf \ && automake --add-missing } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -39,7 +33,7 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install rm "$pkgdir"/usr/lib/libtxc_dxtn.la } |