summaryrefslogtreecommitdiff
path: root/pcr/olsrd/PKGBUILD
blob: c0ac8170e4c7502bd53c8747e2f05093520a3bea (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
34
35
36
37
# Maintainer (AUR): Nimrod Maclomair <nimrod4garoa at gmail dot com>

# parabola changes and rationale:
#  - renamed tarball to avoid collisions
#  - corrected license

pkgname=olsrd
pkgrel=1
pkgver=0.9.6.2
pkgdesc='The olsr.org implementation of the Optimized Link State Routing Protocol.'
arch=('i686' 'x86_64' 'armv7h')
url='http://www.olsr.org/mediawiki/index.php/Olsrd'
license=('BSD3')
depends=()
optdepends=('gpsd')
makedepends=('bison' 'flex' 'gpsd')
source=("$pkgname-$pkgver.tar.gz::https://github.com/OLSR/olsrd/archive/v0.9.6.2.tar.gz"
		'olsrd.service')
sha256sums=('e1e2c1eb4f05fa737bc96fe49c9596984d4059f5209a7149f0a23ac54b99934e'
            '321f2e0d30af597a38442eb8f039757767efc5da88205b85cf96819384c94ac7')

build(){
	cd $pkgname-$pkgver
	make prefix=/usr libdir=/usr/lib/olsrd sbindir=/usr/bin DESTDIR=${pkgdir} build_all
}

package(){
	
	cd $pkgname-$pkgver
	make prefix=/usr libdir=/usr/lib/olsrd sbindir=/usr/bin DESTDIR=${pkgdir} install_all

	mkdir --parents $pkgdir/usr/share/licenses/${pkgname}
	mkdir --parents $pkgdir/usr/lib/systemd/system
	
	cp license.txt $pkgdir/usr/share/licenses/${pkgname}/LICENSE
	cp ../olsrd.service $pkgdir/usr/lib/systemd/system/.
}