diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-08-11 22:12:20 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-08-24 06:50:52 +0000 |
commit | 8ec38c157f3b02dbfaeae70d88c36709642a3327 (patch) | |
tree | 3f4db626f66d8e5cdaec7e7da0b493477344d6d7 /testing/mm | |
parent | 70c51aed7f06b117b70b018970291de24a6e2873 (diff) | |
download | aports-8ec38c157f3b02dbfaeae70d88c36709642a3327.tar.bz2 aports-8ec38c157f3b02dbfaeae70d88c36709642a3327.tar.xz |
testing/mm: modernize APKBUILD and add check
Diffstat (limited to 'testing/mm')
-rw-r--r-- | testing/mm/APKBUILD | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/testing/mm/APKBUILD b/testing/mm/APKBUILD index a014d84564..8e047b89a0 100644 --- a/testing/mm/APKBUILD +++ b/testing/mm/APKBUILD @@ -8,15 +8,13 @@ pkgdesc="A shared memory abstraction library" url="http://www.ossp.org/pkg/lib/mm/" arch="all" license="custom" -depends= -makedepends= subpackages="$pkgname-dev $pkgname-doc" source="ftp://ftp.ntua.gr/pub/utils/ossp/lib/$pkgname/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$builddir" - update_config_sub || return 1 + update_config_sub } build() { @@ -25,13 +23,18 @@ build() { --build=$CBUILD \ --host=$CHOST \ --target=$CTARGET \ - --prefix=/usr || return 1 - make || return 1 + --prefix=/usr + make +} + +check() { + cd "$builddir" + make check } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } |