42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
|
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
||
|
pkgname=properties-cpp
|
||
|
pkgver=0.0.1
|
||
|
_pkgver=0.0.1+14.10.20140730
|
||
|
pkgrel=0
|
||
|
pkgdesc="A very simple convenience library for handling properties and signals in C++11"
|
||
|
url="https://launchpad.net/properties-cpp"
|
||
|
arch="noarch"
|
||
|
license="LGPL3"
|
||
|
depends=""
|
||
|
makedepends="cmake cmake-extras"
|
||
|
checkdepends="gtest-dev gtest"
|
||
|
install=""
|
||
|
subpackages="$pkgname-dev"
|
||
|
source="https://launchpad.net/ubuntu/+archive/primary/+files/properties-cpp_$_pkgver.orig.tar.gz
|
||
|
fixes.patch" # https://github.com/lib-cpp/properties-cpp/pull/1
|
||
|
builddir="$srcdir/$pkgname-$_pkgver"
|
||
|
|
||
|
build() {
|
||
|
mkdir -p "$builddir/build"
|
||
|
cd "$builddir/build"
|
||
|
|
||
|
cmake .. \
|
||
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
|
-DCMAKE_BUILD_TYPE=Release
|
||
|
make
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
cd "$builddir"/build
|
||
|
make test
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$builddir/build"
|
||
|
make DESTDIR="$pkgdir/" install
|
||
|
}
|
||
|
|
||
|
sha512sums="44627c548ac31abb191254246006e73bc3e8a0c489062a253c1815e3588b62eb7578d56b1ef7f5016b23ba1e09ab964354e55930b076d9c439ad5484eb7ea6d3 properties-cpp_0.0.1+14.10.20140730.orig.tar.gz
|
||
|
298ccdf5222f7aad4bf25aa3d18cd4bf552c67db8a98bf473c367857b355457d38a42fae8571061f94596750856a841f2cf03d2ba11bf014a92f82ba19fd74a9 fixes.patch"
|