aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libdparse/APKBUILD
blob: c5c596047b7485480e3c2662d1eb0368b3a84d41 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libdparse
pkgver=0.15.1
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"

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="339fa055247f7eef4807a60aaf910f3558054b97afd453b08088b80216c9707b178f3b4199f782b105f9ad0b5802453afaea7815cb688f569a96de5f0c19c02e  libdparse-0.15.1.tar.gz"