summaryrefslogtreecommitdiff
path: root/user/snappy
diff options
context:
space:
mode:
Diffstat (limited to 'user/snappy')
-rw-r--r--user/snappy/APKBUILD10
1 files changed, 4 insertions, 6 deletions
diff --git a/user/snappy/APKBUILD b/user/snappy/APKBUILD
index 7f9b35e0d..3662d501e 100644
--- a/user/snappy/APKBUILD
+++ b/user/snappy/APKBUILD
@@ -8,12 +8,12 @@ url="https://google.github.io/snappy/"
arch="all"
[ "$CARCH" = "armhf" ] && options="!check" # does not pass testsuite on armhf
license="BSD-3-Clause"
+depends=""
+makedepends="cmake"
subpackages="$pkgname-dbg $pkgname-dev"
-source="snappy-$pkgver.tar.gz::https://github.com/google/snappy/archive/$pkgver.tar.gz
- "
+source="snappy-$pkgver.tar.gz::https://github.com/google/snappy/archive/$pkgver.tar.gz"
build() {
- cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
@@ -24,17 +24,15 @@ build() {
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
- ${CMAKE_CROSSOPTS}
+ ${CMAKE_CROSSOPTS} .
make
}
check() {
- cd "$builddir"
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
}