aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-09-01 00:12:28 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-09-07 11:37:38 +0200
commitf245cc7ca1a2e466fa12c23c07d6d9c39fff9f30 (patch)
treee97bcadec0706cacbfff13d008d8f570ea80255e
parent5d48f6fc0d51f6795c99bc4ce8d0c9319453123e (diff)
downloadaports-f245cc7ca1a2e466fa12c23c07d6d9c39fff9f30.tar.gz
aports-f245cc7ca1a2e466fa12c23c07d6d9c39fff9f30.tar.bz2
aports-f245cc7ca1a2e466fa12c23c07d6d9c39fff9f30.tar.xz
community/libgusb: use abuild-meson & meson compile/test/install
-rw-r--r--community/libgusb/APKBUILD16
1 files changed, 3 insertions, 13 deletions
diff --git a/community/libgusb/APKBUILD b/community/libgusb/APKBUILD
index 58e4bb7a89e..fb27874a6a0 100644
--- a/community/libgusb/APKBUILD
+++ b/community/libgusb/APKBUILD
@@ -14,23 +14,13 @@ checkdepends="python3-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="libgusb-$pkgver.tar.gz::https://github.com/hughsie/libgusb/archive/$pkgver.tar.gz"
-prepare() {
- default_prepare
- mkdir -p output
-}
-
build() {
- meson . ./output --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --localstatedir=/var \
- --buildtype=plain
- ninja -C output
+ abuild-meson . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
}
package() {
- DESTDIR="$pkgdir" ninja -C output install
+ DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="516a7a611fcd2c123c8b988f949c945d83b46580220df7cb030bf19fb1f1d425c2a75b55d39ec65419bc19fc792c31db11e3b8cdc2635aa7269ee404fc3a25f4 libgusb-0.3.5.tar.gz"