aboutsummaryrefslogtreecommitdiffstats
path: root/community/corecollector/APKBUILD
blob: fbdeba6c8bafbd7bc2650610c19173c94eba9a61 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=corecollector
pkgver=0.3.1
pkgrel=0
pkgdesc="A coredump collector written in D"
url="https://github.com/Cogitri/corecollector"
arch="all !ppc64le" # Missing gdc on ppc64le
license="GPL-3.0-or-later"
depends="gdb"
makedepends="meson gcc-gdc scdoc"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-doc"
source="https://github.com/Cogitri/corecollector/archive/v$pkgver/corecollector-$pkgver.tar.gz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}

sha512sums="0ef26e11d82237b29841f4e151b0b50bb812e5a9f736fdc6000378fae2951180a9f37867fce8beec52f7bbe0ecb4bed160e7948b0590a66e7214e1248e098661  corecollector-0.3.1.tar.gz"