aboutsummaryrefslogtreecommitdiffstats
path: root/testing/corecollector/APKBUILD
blob: ae3ca59d1a78cd077a96c0142d75195f6ab9e9a1 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=corecollector
pkgver=0.3.0
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=release \
		. output
	ninja -C output
}

check() {
	ninja -C output test
}

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

sha512sums="de094dc7556575bf953bd7e7222200338e6b15c35ed1d06de147e70ba8bc30cbb39da6c3c275ceefca447e9a7e177a72cccb4ccc9089024643e326620b1f15fb  corecollector-0.3.0.tar.gz"