From 30030d2968ec0c7c556986124575b054867caff5 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Thu, 8 Mar 2018 16:41:00 +0100 Subject: community/opam: modernize abuild --- community/opam/APKBUILD | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/community/opam/APKBUILD b/community/opam/APKBUILD index ada9189afe..2816d601b0 100644 --- a/community/opam/APKBUILD +++ b/community/opam/APKBUILD @@ -9,14 +9,13 @@ arch="all !x86 !armhf !s390x" # ocaml not avail on excluded platforms license="LGPL-3.0" depends="ocaml camlp4 curl tar unzip rsync aspcud patch" makedepends="$depends_dev" -install="" -subpackages="" source="https://github.com/ocaml/$pkgname/releases/download/$pkgver/$pkgname-full-$pkgver.tar.gz fix-default-stubsdir.patch" -builddir="$srcdir"/$pkgname-full-$pkgver +builddir="$srcdir/$pkgname-full-$pkgver" build() { cd "$builddir" + ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -24,14 +23,13 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 - make -j1 lib-ext all || return 1 + --localstatedir=/var + make -j1 lib-ext all } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install } sha512sums="f095ef4c02e6a411ee115b508c7dc21cf6480f60ad5d84ed5ce5868afa1f6225ead0eb6703763d803edc22595e83db67cdd1a4ecab50ee2c62c20965b0542436 opam-full-1.2.2.tar.gz -- cgit v1.2.3