summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6221b3114093da96f69ec2abd4cc0ec8e903f269 (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
32
33
# Maintainer: Romain Bazile <gromain.baz at gmail dot com>
pkgname=wpantund-git
pkgver=0.07.00.r222.g811cef1
pkgrel=2
pkgdesc="Userspace WPAN Network Daemon"
arch=('i686' 'x86_64')
url="https://github.com/openthread/wpantund"
license=('Apache')
makedepends=('git' 'gcc' 'boost-libs' 'readline')
depends=('dbus' 'readline')
provides=('wpantund' 'wpanctl')
source=("$pkgname::git+https://github.com/openthread/wpantund.git")

sha512sums=('SKIP')


pkgver() {
	cd $pkgname
	git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
	cd $pkgname
	./bootstrap.sh
	./configure --sysconfdir=/etc
	make
}

package() {
	cd $pkgname
	make DESTDIR="$pkgdir" PREFIX=/usr MANPREFIX=/usr/share/man install
}