aboutsummaryrefslogtreecommitdiffstats
path: root/testing/easyloggingpp-dev/APKBUILD
blob: c4d1b452a24a23dd64981e84008eb54d8ed1a5d4 (plain) (blame)
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
45
46
47
48
49
50
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer:
pkgname=easyloggingpp-dev
_pkgname=easyloggingpp
pkgver=9.96.7
pkgrel=1
pkgdesc="Single header C++ logging library"
url="https://github.com/zuhd-org/easyloggingpp"
arch="all"
license="MIT"
depends="libexecinfo-dev"
checkdepends="gtest gtest-dev"
makedepends="$depends_dev cmake"
source="https://github.com/zuhd-org/$_pkgname/archive/v$pkgver/$_pkgname-$pkgver.tar.gz
	musl-compat.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_prepare

	# FIXME: These tests fail.
	sed -i \
		-e '/command-line-args-test\.h/d' \
		-e '/helpers-test\.h/d' \
		test/main.cc
}

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_VERBOSE_MAKEFILE=ON \
		-DELPP_PKGCONFIG_INSTALL_DIR=/usr/lib/pkgconfig \
		-Dbuild_static_lib=ON \
		-Dtest=ON
	make
}

check() {
	make test ARGS="-V"
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="53ee637cd7462fac542170a81a9a206f3418dd8bc9e1f25d1d13dadef630e0fdf2880d71079808ebc49d36a7dbca7b5cdb76ad37b722c66b4b3d3efc8b5d2f35  easyloggingpp-9.96.7.tar.gz
ad0d3d8bfd8a00513168cd0a814c30219fe60139b17cf153b0b68332edf5a0ce52c6aecf620452a19f78de36b37af38f44a5169c48ff556c7b305ba01c206ecb  musl-compat.patch"