aboutsummaryrefslogtreecommitdiffstats
path: root/community/properties-cpp/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/properties-cpp/APKBUILD')
-rw-r--r--community/properties-cpp/APKBUILD34
1 files changed, 17 insertions, 17 deletions
diff --git a/community/properties-cpp/APKBUILD b/community/properties-cpp/APKBUILD
index 02fe686d74..12a2fe4e8d 100644
--- a/community/properties-cpp/APKBUILD
+++ b/community/properties-cpp/APKBUILD
@@ -1,26 +1,26 @@
-# Contributor: Luca Weiss <luca@z3ntu.xyz>
-# Maintainer: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=properties-cpp
-pkgver=0.0.2_git20180409
-pkgrel=2
-_commit="45863e849b39c4921d6553e6d27e267a96ac7d77"
+pkgver=0.0.2
+pkgrel=0
pkgdesc="A very simple convenience library for handling properties and signals in C++11"
-url="https://launchpad.net/properties-cpp"
+url="https://gitlab.com/ubports/core/lib-cpp/properties-cpp"
arch="noarch"
license="LGPL-3.0-only"
-makedepends="cmake-extras"
-checkdepends="gtest-dev gtest"
+makedepends="cmake gtest-dev"
subpackages="$pkgname-dev"
-source="https://github.com/lib-cpp/properties-cpp/archive/$_commit/properties-cpp-$_commit.tar.gz
- cmake-cleanup.patch
- "
-builddir="$srcdir/$pkgname-$_commit"
+source="https://gitlab.com/ubports/core/lib-cpp/properties-cpp/-/archive/$pkgver/properties-cpp-$pkgver.tar.gz
+ 0001-CMake-cleanup.patch"
build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
cmake -B build \
- -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=None \
+ $CMAKE_CROSSOPTS .
cmake --build build
}
@@ -30,8 +30,8 @@ check() {
}
package() {
- DESTDIR="$pkgdir/" cmake --build build --target install
+ DESTDIR="$pkgdir" cmake --install build
}
-sha512sums="5697b9acacb63b801ef531a3741655e67896604c5150a754d9e11f87898ee564a2707fcb8346119b7081ae725e8bbfa671e537e4985a061da7161ff7b12d5985 properties-cpp-45863e849b39c4921d6553e6d27e267a96ac7d77.tar.gz
-73397c1a3b506065de1b320af49c6e4be8e0c9f1b9b2409c7c55c2e98c9f5b6decdfe52314b6ffc882e2f87ba2e41c2b4b1981f21da0e31970c0ac8f8c1abda9 cmake-cleanup.patch"
+sha512sums="7ec94ce495c9630d5acc0b98051b31e7eb3e50fef9dff3a476cd91ca912937f48826fbdab57907b042b13e29786dcb3483151690374b0e09d6e1c12c6329df5a properties-cpp-0.0.2.tar.gz
+ce6a258c5c57e41e2b1cbc7e2988f8b89d61c36415cc03986e33511a1fb09b793fb473aa5f8da6d80c906454a4152c096ffdfb32570a83a8ae2bdfc888a25248 0001-CMake-cleanup.patch"