# Contributor: Luca Weiss # Maintainer: Bart Ribbers 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"