aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mm
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-08-11 22:12:20 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-08-24 06:50:52 +0000
commit8ec38c157f3b02dbfaeae70d88c36709642a3327 (patch)
tree3f4db626f66d8e5cdaec7e7da0b493477344d6d7 /testing/mm
parent70c51aed7f06b117b70b018970291de24a6e2873 (diff)
downloadaports-8ec38c157f3b02dbfaeae70d88c36709642a3327.tar.bz2
aports-8ec38c157f3b02dbfaeae70d88c36709642a3327.tar.xz
testing/mm: modernize APKBUILD and add check
Diffstat (limited to 'testing/mm')
-rw-r--r--testing/mm/APKBUILD15
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
}