blob: 7970638971e130be859c1a34fac65b22285302d9 (
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
38
39
40
41
42
43
44
|
# Maintainer: Nimrod Maclomair <nimrod4garoa at gmail dot com>
pkgname=olsrd-git
pkgrel=1
pkgver=v0.9.7.r73.g8b7fcf61
pkgdesc='The olsr.org implementation of the Optimized Link State Routing Protocol.'
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
url='http://www.olsr.org/mediawiki/index.php/Olsrd'
license=('custom')
depends=()
optdepends=('gpsd')
makedepends=('bison' 'flex' 'gpsd')
source=("$pkgname"::'git+https://github.com/OLSR/olsrd.git'
'0001-gpslib-fix-for-3_20.patch'
'olsrd.service')
sha256sums=('SKIP'
'fa865bc4b4a987a92b683825be42686d4b9d7a33d5fd1a3ea4b6976e23fcb08e'
'321f2e0d30af597a38442eb8f039757767efc5da88205b85cf96819384c94ac7')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/$pkgname"
patch --forward --strip=1 --input="${srcdir}/0001-gpslib-fix-for-3_20.patch"
}
build(){
cd $pkgname
make prefix=/usr libdir=/usr/lib/olsrd sbindir=/usr/bin DESTDIR=${pkgdir} build_all
}
package(){
cd $pkgname
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/.
}
|