aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libdparse/APKBUILD
blob: 68d933fc204853c86a61175725c9c68906e17969 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libdparse
pkgver=0.13.2
pkgrel=0
pkgdesc="Library for lexing and parsing D source code"
url="https://libdparse.dlang.io/"
arch="x86_64" # ldc
license="BSL-1.0"
makedepends="meson ldc ldc-runtime stdx-allocator-dev"
subpackages="$pkgname-dev"
source="https://github.com/dlang-community/libdparse/archive/v$pkgver/libdparse-$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="3f95a9042476e784b7b3d16539b56e1c36ac7ffc72d3983866ececf19a450cbc8e183bc4bb74f763784ecfdda620a1f40668917e8f6588aef805a19021447665  libdparse-0.13.2.tar.gz"