aboutsummaryrefslogtreecommitdiffstats
path: root/testing/stdx-allocator/APKBUILD
blob: 6ffc66802fabc31efd8e1e79f07ff74da9c23568 (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
37
38
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=stdx-allocator
pkgver=3.1.0_beta2
_betanum=${pkgver/${pkgver%beta*}/}
_pkgver=${pkgver/_$_betanum/}
_verstring=$_pkgver-${_betanum/ta/ta.}
pkgrel=0
pkgdesc="Extracted std.experimental.allocator for usage via DUB"
url="https://github.com/dlang-community/stdx-allocator"
arch="x86 x86_64 aarch64" # ldc
license="BSL-1.0"
makedepends="meson ldc ldc-runtime mir-core-dev"
subpackages="$pkgname-dev"
options="!check" # region.d(759) failing
source="https://github.com/dlang-community/stdx-allocator/archive/v$_verstring/stdx-allocator-$_verstring.tar.gz"
builddir="$srcdir/stdx-allocator-$_verstring"

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="74089666471ca23df66ace2c3d57e828fe7282344c1a0f9e14c0db13b8d842d3f60385181a3a8953fd193a1dbf6ca6828a561306636ab05c6ebe952b97993cfe  stdx-allocator-3.1.0-beta.2.tar.gz"