aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libdparse/APKBUILD
blob: aa7dd8343a1c8cb0541b7238794fb75b4bb907a2 (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=libdparse
pkgver=0.14.0
pkgrel=0
pkgdesc="Library for lexing and parsing D source code"
url="https://libdparse.dlang.io/"
arch="x86 x86_64 aarch64" # 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
	389.patch"

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="c4c4ba232cf462ccfb43147284af55d587be58136072a1ac9d24265800e8418a72e5927607206b909f767455af1fd82da57d54183df4342a95cad0b40899c383  libdparse-0.14.0.tar.gz
5e8fe47e04f52dbdbbcd9be525b7e67c00e78259342be617ec4b2bd8dc32b5a02fba6d66075babe2b1c0efdcc7b726911389419c7c4f427d76d2a2a0c1e998aa  389.patch"