aboutsummaryrefslogtreecommitdiffstats
path: root/testing/properties-cpp/APKBUILD
diff options
context:
space:
mode:
authorAntoine Fontaine <antoine.fontaine@epfl.ch>2020-02-08 13:50:18 +0100
committerRasmus Thomsen <oss@cogitri.dev>2020-02-19 22:28:03 +0100
commitebf3f2ec6890cfe610936b1ae393012eebd4e7bf (patch)
tree2306b72521f0620e157601aaef13bc19933670f3 /testing/properties-cpp/APKBUILD
parent83c6036c3196c5218c9a63cb17989df5d0521bf2 (diff)
downloadaports-ebf3f2ec6890cfe610936b1ae393012eebd4e7bf.tar.bz2
aports-ebf3f2ec6890cfe610936b1ae393012eebd4e7bf.tar.xz
testing/properties-cpp: new aport
Diffstat (limited to 'testing/properties-cpp/APKBUILD')
-rw-r--r--testing/properties-cpp/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/properties-cpp/APKBUILD b/testing/properties-cpp/APKBUILD
new file mode 100644
index 0000000000..c039ba6b97
--- /dev/null
+++ b/testing/properties-cpp/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Luca Weiss <luca@z3ntu.xyz>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=properties-cpp
+pkgver=0.0.2_git20180409
+_commit="45863e849b39c4921d6553e6d27e267a96ac7d77"
+pkgrel=0
+pkgdesc="A very simple convenience library for handling properties and signals in C++11"
+url="https://launchpad.net/properties-cpp"
+arch="all"
+license="LGPL-3.0-only"
+makedepends="cmake-extras"
+checkdepends="gtest-dev gtest"
+subpackages="$pkgname-dev"
+source="$pkgname-$_commit.tar.gz::https://github.com/lib-cpp/properties-cpp/archive/$_commit.tar.gz
+ cmake-cleanup.patch" # https://github.com/lib-cpp/properties-cpp/pull/1
+builddir="$srcdir/$pkgname-$_commit"
+
+prepare() {
+ default_prepare
+
+ mkdir -p "$builddir"/build
+}
+
+build() {
+ cd "$builddir"/build
+ cmake "$builddir" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo
+ make
+}
+
+check() {
+ cd "$builddir"/build
+ make test
+}
+
+package() {
+ cd "$builddir"/build
+ DESTDIR="$pkgdir/" make install
+}
+
+sha512sums="5697b9acacb63b801ef531a3741655e67896604c5150a754d9e11f87898ee564a2707fcb8346119b7081ae725e8bbfa671e537e4985a061da7161ff7b12d5985 properties-cpp-45863e849b39c4921d6553e6d27e267a96ac7d77.tar.gz
+73397c1a3b506065de1b320af49c6e4be8e0c9f1b9b2409c7c55c2e98c9f5b6decdfe52314b6ffc882e2f87ba2e41c2b4b1981f21da0e31970c0ac8f8c1abda9 cmake-cleanup.patch"