aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Liske <thomas@fiasko-nw.net>2020-03-23 21:04:31 +0100
committerTBK <tbk@jjtc.eu>2020-03-24 09:24:24 +0100
commit797d5db168d8535b88582f8902c5759f3edbd697 (patch)
treedd00c38e55a81acc2ee2b0c054dcd95e9fbf8afa
parentf3958e3d3fa56a550f4a8a32e4b130828a489066 (diff)
downloadaports-797d5db168d8535b88582f8902c5759f3edbd697.tar.gz
aports-797d5db168d8535b88582f8902c5759f3edbd697.tar.bz2
aports-797d5db168d8535b88582f8902c5759f3edbd697.tar.xz
community/rtrlib: update APKBUILD
-rw-r--r--community/rtrlib/APKBUILD15
1 files changed, 7 insertions, 8 deletions
diff --git a/community/rtrlib/APKBUILD b/community/rtrlib/APKBUILD
index 5454ec7bf2..b172e8655f 100644
--- a/community/rtrlib/APKBUILD
+++ b/community/rtrlib/APKBUILD
@@ -8,29 +8,28 @@ arch="all"
license="MIT"
makedepends="cmake cmocka-dev doxygen graphviz libssh-dev"
subpackages="$pkgname-dev $pkgname-doc"
-source="${pkgname}-${pkgver}.tar.gz::https://github.com/rtrlib/rtrlib/archive/v$pkgver.tar.gz"
-builddir="$srcdir/$pkgname-$pkgver"
+source="$pkgname-$pkgver.tar.gz::https://github.com/rtrlib/rtrlib/archive/v$pkgver.tar.gz"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
- cmake \
+ cmake -B build \
+ -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
- -DCMAKE_BUILD_TYPE=None \
-DCMAKE_C_FLAGS="$CFLAGS" \
- ${CMAKE_CROSSOPTS}
- make
+ "$CMAKE_CROSSOPTS"
+ make -C build
}
check() {
- make test
+ make -C build test
}
package() {
- make DESTDIR="$pkgdir" install
+ make -C build DESTDIR="$pkgdir" install
}
sha512sums="e1c78ce92d066308c1c4fbb6575c2f0dc0f6840c16be90e27bd0da184cab7d0fa4dd1cff3677eda5f1720184756e02765e5abd267b0da0d183082721fee2ffd8 rtrlib-0.7.0.tar.gz"