aboutsummaryrefslogtreecommitdiffstats
path: root/testing/bear/APKBUILD
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2020-10-08 12:44:12 +0200
committerSören Tempel <soeren+alpine@soeren-tempel.net>2020-10-08 12:48:00 +0000
commitc596df7ff35c61327f290ae9b6204caa95b28a7e (patch)
tree4418773319fec2378c190102903cfc656b2e7d05 /testing/bear/APKBUILD
parentd3e87eb8de8b167a16a4ad9ddb77ee6fab9be0ba (diff)
downloadaports-c596df7ff35c61327f290ae9b6204caa95b28a7e.tar.gz
aports-c596df7ff35c61327f290ae9b6204caa95b28a7e.tar.bz2
aports-c596df7ff35c61327f290ae9b6204caa95b28a7e.tar.xz
testing/bear: new aport
Diffstat (limited to 'testing/bear/APKBUILD')
-rw-r--r--testing/bear/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/bear/APKBUILD b/testing/bear/APKBUILD
new file mode 100644
index 0000000000..bcd4351610
--- /dev/null
+++ b/testing/bear/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
+pkgname=bear
+pkgver=3.0.0
+pkgrel=0
+pkgdesc="Tool which generates a compilation database for clang tooling"
+url="https://github.com/rizsotto/Bear"
+# ppc64le armv7 armhf: Limited by grpc
+# s390x: Test failure <https://github.com/rizsotto/Bear/issues/309>
+arch="all !s390x !ppc64le !armv7 !armhf"
+license="GPL-3.0-or-later"
+makedepends="cmake grpc grpc-dev fmt-dev spdlog-dev
+ nlohmann-json protobuf-dev gtest-dev c-ares-dev"
+subpackages="$pkgname-doc"
+source="https://github.com/rizsotto/Bear/archive/$pkgver/bear-$pkgver.tar.gz
+ fix-32bit-build.patch"
+builddir="$srcdir/Bear-$pkgver"
+
+build() {
+ cmake -B build \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None .
+ make -C build
+}
+
+check() {
+ cd build
+ ctest --verbose --output-on-failure
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+}
+
+sha512sums="e95990302dd471ef0c7380d278981656660614d9babbbf94e85b68c299df0a4183059054e69b2b41c39b02bf5c80c2050909ea909ad2c68d99be4c2f40f366d8 bear-3.0.0.tar.gz
+1871fa2e95acc4ef39f4e37734baa66760411f1eba4d0248c0671b2d8a1207999428dc5ed0e03a27ec5b63d272d85ac0a43744c4d82cb873b3de4f1032e4cd68 fix-32bit-build.patch"