aboutsummaryrefslogtreecommitdiffstats
path: root/testing/properties-cpp/APKBUILD
blob: 080a99730001e33a101c9669a04bf23b9c6f57fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Luca Weiss <luca@z3ntu.xyz>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=properties-cpp
pkgver=0.0.2_git20180409
_commit="45863e849b39c4921d6553e6d27e267a96ac7d77"
pkgrel=1
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=None
	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"