summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d7fb8a56f4124779727015920abb8c9d05d11d6 (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>

pkgname=libmicrodns-git
_pkg="${pkgname%-git}"
pkgver=0.2.0.r6.g1d4556e
pkgrel=1
pkgdesc='Minimal mDNS resolver library'
url='https://github.com/videolabs/libmicrodns'
arch=('x86_64')
license=('LGPL2.1')
depends=('glibc')
makedepends=('git' 'meson')
provides=("$_pkg.so" "$_pkg")
conflicts=("$_pkg")
source=("$_pkg::git+$url")
sha512sums=('SKIP')

pkgver() {
	git -C "$_pkg" describe --long --tags | sed 's/-/.r/;s/-/./'
}

build() {
	arch-meson "$_pkg" build
	meson compile -C build
}

package() {
	DESTDIR="$pkgdir" meson install -C build
}