diff options
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 |