aboutsummaryrefslogtreecommitdiffstats
path: root/testing/glog/APKBUILD
blob: c5c508a4e011562e256d244bdfe32e85c8a9f366 (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
# Contributor: David Huffman <storedbox@outlook.com>
# Maintainer: David Huffman <storedbox@outlook.com>
pkgname=glog
pkgver=0.4.0
pkgrel=3
pkgdesc="C++ implementation of the Google logging module"
options="!check" # Tests fail to compile on aarch64 armhf and armv7
url="https://github.com/google/glog"
arch="all"
license="BSD-3-Clause"
makedepends="cmake gflags-dev"
subpackages="$pkgname-dev"
source="https://github.com/google/glog/archive/v$pkgver/$pkgname-$pkgver.tar.gz
	pc-file.patch
	"

build() {
	mkdir build
	cd build
	cmake \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DWITH_GFLAGS=ON \
		-DWITH_THREADS=ON \
		-DWITH_TLS=ON \
		-DBUILD_SHARED_LIBS=ON \
		-DPRINT_UNSYMBOLIZED_STACK_TRACES=OFF \
		-DBUILD_TESTING=OFF \
		..
	make
}

package() {
	make -C build DESTDIR="$pkgdir" install
}
sha512sums="b585f1819ade2075f6b61dc5aaca5c3f9d25601dba2bd08b6c49b96ac5f79db23c6b7f2042df003f7130497dd7241fcaa8b107d1f97385cb66ce52d3c554b176  glog-0.4.0.tar.gz
fd58efd42b299bb2e7c38af9c900f3ae454a99fea2a9b7b20bea50347bde663127ab0c19b5f5b3fb69ed5e8e19a7b43eb173332fe993f7e1cba66bf99921a870  pc-file.patch"