summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b192483ac5c3d46ab9210d107347cfe3b299db0 (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
# Maintainer: emersion <contact emersion fr>
pkgname=libvarlink
pkgver=19
pkgrel=1
license=('MIT')
pkgdesc='Varlink C library and command line tool'
makedepends=("meson" "python")
arch=('x86_64')
url='https://github.com/varlink/libvarlink'
source=("https://github.com/varlink/libvarlink/archive/${pkgver}.tar.gz")
sha256sums=('0e316138ef6abc34363b05d0caf6df2e389a93b832e8d971e3ae64b48ba96133')

build() {
	cd "$pkgname-$pkgver"

	meson --prefix=/usr build/
	ninja -C build/
}

check() {
	cd "$pkgname-$pkgver"
	ninja -C build/ test
}

package() {
	cd "$pkgname-$pkgver"

	install -D -m 644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE

	DESTDIR="$pkgdir/" ninja -C build/ install
}