summaryrefslogtreecommitdiff
path: root/pcr/babeld/PKGBUILD
blob: e125f83e9a7e8768e051f33d517ee3758d70f6cd (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
# Maintainer (AUR): Yann Lopez <arch at lonewulf dot net>
# Maintainer (Parabola): fauno <fauno@parabola.nu>
pkgname=babeld
pkgver=1.3.6
pkgrel=1
pkgdesc="Loop-free distance-vector routing protocol"
arch=(i686 x86_64 mips64el)
url="http://www.pps.jussieu.fr/~jch/software/babel/"
license=('custom')
depends=(glibc)
source=(http://www.pps.jussieu.fr/~jch/software/files/$pkgname-$pkgver.tar.gz{,.asc})
install=babeld.install

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

  sed -e "s,/man/,/share&,g" -i Makefile

  make PREFIX=/usr CFLAGS="$CFLAGS"
}

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

  make PREFIX=/usr TARGET=$pkgdir install

  gzip -f $pkgdir/usr/share/man/man8/$pkgname.8

  install -Dm 644 LICENCE $pkgdir/usr/share/licenses/$pkgname/LICENCE
}
md5sums=('5dfccfeb2db5d8244c2fd2dc301e89a0'
         'SKIP')