aboutsummaryrefslogtreecommitdiffstats
path: root/community/glog/APKBUILD
blob: 4019e15891d41afc8f5e35dbdb9b456c1cfbd6e7 (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
# Contributor: David Huffman <storedbox@outlook.com>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=glog
pkgver=0.5.0
pkgrel=1
pkgdesc="C++ implementation of the Google logging module"
url="https://github.com/google/glog"
# riscv64 blocked by libunwind
arch="all !riscv64"
license="BSD-3-Clause"
depends_dev="gflags-dev"
makedepends="$depends_dev cmake gtest-dev libunwind-dev"
subpackages="$pkgname-dev"
source="https://github.com/google/glog/archive/v$pkgver/glog-$pkgver.tar.gz"

build() {
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		-DWITH_GFLAGS=ON \
		-DWITH_THREADS=ON \
		-DWITH_TLS=ON \
		-DPRINT_UNSYMBOLIZED_STACK_TRACES=OFF
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
445e4338f3d81cd0b065f2da9c6ce343c243263ca144cea424ef97531a4e9e09c06ffd6942ac01c5213a8003c75cfbbede3c4028d12f0134f23ff29314769c1a  glog-0.5.0.tar.gz
"