summaryrefslogtreecommitdiff
path: root/testing/buildcache/APKBUILD
blob: 2f05f64ffbc2f414dae369819ae0afacd42a8cfe (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
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=buildcache
pkgver=0.27.6
pkgrel=1
pkgdesc="Advanced compiler accelerator"
url="https://github.com/mbitsnbites/buildcache"
arch="all !s390x !armhf" # failing tests
license="Zlib"
makedepends="
	openssl-dev>3
	cmake
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/mbitsnbites/buildcache/archive/refs/tags/v$pkgver.tar.gz"

build() {
	cmake \
	-B build \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	"src"
	cmake --build build
}

check() {
	cmake --build build --target test
}

package() {
	DESTDIR="$pkgdir" cmake --install build
	rm -rf "$pkgdir/usr/share/lua-examples/"
}

sha512sums="
7160bef0da93fe2a335b3597ba4adbc58508a6488b703012c80561ffd478f384f4deb32ab676047aa2eb0cd444f0bc785830e850f0b6cf7037f3a3b82608967e  buildcache-0.27.6.tar.gz
"