diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-18 22:42:06 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-18 22:42:06 +0100 |
commit | 125797c0d238992fdc36079b7f06d0f3b8d7d3fc (patch) | |
tree | d9ac437e572a92f6d3269b500152e6c528fff34f /main | |
parent | 3fbe60c414d9f97202616b1c50f685a1d88e751b (diff) | |
download | aports-125797c0d238992fdc36079b7f06d0f3b8d7d3fc.tar.bz2 aports-125797c0d238992fdc36079b7f06d0f3b8d7d3fc.tar.xz |
main/libogg: improve abuild
Diffstat (limited to 'main')
-rw-r--r-- | main/libogg/APKBUILD | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/main/libogg/APKBUILD b/main/libogg/APKBUILD index 552db12a3d..03704c7420 100644 --- a/main/libogg/APKBUILD +++ b/main/libogg/APKBUILD @@ -8,30 +8,23 @@ url="http://xiph.org/ogg/" arch="all" license="BSD" options="!check" # no tests available -depends= subpackages="$pkgname-doc $pkgname-dev" -source="http://downloads.xiph.org/releases/ogg/$pkgname-$pkgver.tar.gz - " - -_builddir="$srcdir/$pkgname-$pkgver" - -prepare() { - cd "$_builddir" -} +source="http://downloads.xiph.org/releases/ogg/$pkgname-$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/usr \ - || return 1 - make || return 1 + --prefix=/usr + make } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING |