aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2020-04-10 11:56:48 +0200
committerSören Tempel <soeren+git@soeren-tempel.net>2020-04-10 11:57:14 +0200
commita4559fe250dfce6a7b0a8a95ff6ffd68fda2808f (patch)
tree0c5bcb9b8f8f8c4890e1ad6694e0d74c5dd8d6e5
parentccfb1ad66dd4b4fdb612dbe7b982ac7011d384a4 (diff)
downloadaports-a4559fe250dfce6a7b0a8a95ff6ffd68fda2808f.tar.gz
aports-a4559fe250dfce6a7b0a8a95ff6ffd68fda2808f.tar.bz2
aports-a4559fe250dfce6a7b0a8a95ff6ffd68fda2808f.tar.xz
community/neko: modernize APKBUILD
-rw-r--r--community/neko/APKBUILD21
1 files changed, 9 insertions, 12 deletions
diff --git a/community/neko/APKBUILD b/community/neko/APKBUILD
index 11576f5399..778c9ebbfc 100644
--- a/community/neko/APKBUILD
+++ b/community/neko/APKBUILD
@@ -18,26 +18,23 @@ $pkgname-apache2"
source="$pkgname-$pkgver.tar.gz::https://github.com/HaxeFoundation/neko/archive/v${pkgver//./-}.tar.gz
remove-git-dependent-targets.patch
"
-
builddir="$srcdir/$pkgname-${pkgver//./-}"
-build() {
- cd "$builddir"
- mkdir -p build || return 1
- cd build || return 1
-
- cmake "../" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib -DNEKO_JIT_DISABLE=ON -GNinja || return 1
- ninja || return 1
+build() {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DNEKO_JIT_DISABLE=ON \
+ -GNinja
+ ninja -C build
}
check() {
- cd "$builddir"
- ninja -C build test || return 1
+ ninja -C build test
}
package() {
- cd "$builddir"
- DESTDIR="$pkgdir" ninja -C build install || return 1
+ DESTDIR="$pkgdir" ninja -C build install
}
_mv_ndll() {