aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libwbxml/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-04-13 20:43:04 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-04-14 00:54:48 +0000
commited72c54e247af04fe65fad519b3c650933569348 (patch)
tree08050203c5ea37a4ed63c776b3894afb30642d45 /testing/libwbxml/APKBUILD
parentd15f38cbe02f69f49f94c3e771332a5a0acbfc0c (diff)
downloadaports-ed72c54e247af04fe65fad519b3c650933569348.tar.gz
aports-ed72c54e247af04fe65fad519b3c650933569348.tar.bz2
aports-ed72c54e247af04fe65fad519b3c650933569348.tar.xz
testing/libwbxml: fix location of cmake modules
Diffstat (limited to 'testing/libwbxml/APKBUILD')
-rw-r--r--testing/libwbxml/APKBUILD24
1 files changed, 14 insertions, 10 deletions
diff --git a/testing/libwbxml/APKBUILD b/testing/libwbxml/APKBUILD
index 228bbe9dfe..22677ca332 100644
--- a/testing/libwbxml/APKBUILD
+++ b/testing/libwbxml/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=libwbxml
pkgver=0.11.6
-pkgrel=0
+pkgrel=1
pkgdesc="A library to encode and decode WBXML (WAP Binary XML)."
url="https://github.com/libwbxml/libwbxml"
arch="all"
@@ -10,25 +10,29 @@ license="LGPL-2.1-or-later"
makedepends="cmake expat-dev"
checkdepends="check-dev"
subpackages="$pkgname-dev $pkgname-doc"
-source="https://github.com/libwbxml/libwbxml/archive/$pkgname-$pkgver.tar.gz"
+source="https://github.com/libwbxml/libwbxml/archive/libwbxml-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
build() {
- mkdir build && cd build
- cmake .. \
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DENABLE_UNIT_TEST=ON
- make
+ -DENABLE_UNIT_TEST=ON \
+ $CMAKE_CROSSOPTS .
+ make -C build
}
check() {
- cd "$builddir/build"
- make test
+ make -C build test
}
package() {
- cd "$builddir/build"
- make DESTDIR="$pkgdir" install
+ make -C build DESTDIR="$pkgdir" install
+
+ mkdir -p "$pkgdir"/usr/lib
+ mv "$pkgdir"/usr/share/cmake "$pkgdir"/usr/lib
}
sha512sums="a862afc0d8c997dfe3a8723b8580ca81ea28a205ca9129ef4756cc82ceca66fae51692a46f4227d4e871dd572bc2c9c8389844cd978ff06a91fb118917c06759 libwbxml-0.11.6.tar.gz"