aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libxcvt/APKBUILD
blob: 47add871cd71325a515f3d4a11c4424582796c50 (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
36
37
# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=libxcvt
pkgver=0.1.1
pkgrel=0
pkgdesc="xorg xcvt library and cvt program"
url="https://gitlab.freedesktop.org/xorg/lib/libxcvt"
arch="all"
license="custom"
makedepends="meson"
subpackages="$pkgname-dev $pkgname-doc"
source="https://xorg.freedesktop.org/releases/individual/lib/libxcvt-$pkgver.tar.xz"

build() {
	meson \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--buildtype=plain \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -D -m644 "$srcdir"/$pkgname-$pkgver/COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="
50e9cd0283858823d4cfde75f06e23ffc42983272cb1f75408052fb5b76a4bb6f9de7d42d8ff9ec0dae6e95eefebc6273e03c919a92f237585db55eaf1a57005  libxcvt-0.1.1.tar.xz
"