2020-08-25 19:47:53 +00:00

38 lines
1.2 KiB
Plaintext

# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=properties-cpp
pkgver=0.0.2_git20180409
pkgrel=2
_commit="45863e849b39c4921d6553e6d27e267a96ac7d77"
pkgdesc="A very simple convenience library for handling properties and signals in C++11"
url="https://launchpad.net/properties-cpp"
arch="noarch"
license="LGPL-3.0-only"
makedepends="cmake-extras"
checkdepends="gtest-dev gtest"
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"
build() {
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib
cmake --build build
}
check() {
cd build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
DESTDIR="$pkgdir/" cmake --build build --target install
}
sha512sums="5697b9acacb63b801ef531a3741655e67896604c5150a754d9e11f87898ee564a2707fcb8346119b7081ae725e8bbfa671e537e4985a061da7161ff7b12d5985 properties-cpp-45863e849b39c4921d6553e6d27e267a96ac7d77.tar.gz
73397c1a3b506065de1b320af49c6e4be8e0c9f1b9b2409c7c55c2e98c9f5b6decdfe52314b6ffc882e2f87ba2e41c2b4b1981f21da0e31970c0ac8f8c1abda9 cmake-cleanup.patch"