summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2a3b16ee4826429ea542131a9add2444a64153d (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
pkgname=mrouted
pkgver=3.9.8
pkgrel=1
pkgdesc="An implementation of the DVMRP multicast routing protocol. It turns a UNIX workstation into a DVMRP multicast router with tunnel support, in order to cross non-multicast-aware routers."
arch=('i686' 'x86_64')
url="https://github.com/troglobit/mrouted"
license=('BSD')
backup=('etc/mrouted.conf')
depends=('glibc')
source=("https://github.com/troglobit/mrouted/releases/download/${pkgver}/mrouted-${pkgver}.tar.bz2"
	"mrouted.service")
md5sums=('8fdd21cf7028b0d16e9477140d311750'
         'a1ba2643cb169513666a2dcc98e01f4e')

prepare() {
  cd $pkgname-$pkgver
  ./configure
}

build() {
  cd $pkgname-$pkgver
  # and this was supposed to be "easier"?
  sed -i 's|sbin|bin|g' Makefile
  make
}
package() {
  cd $pkgname-$pkgver
  make prefix=/usr DESTDIR=$pkgdir install
  install -Dm644 "$srcdir/mrouted.service" "$pkgdir/usr/lib/systemd/system/mrouted.service"
  # and this was supposed to be "easier"?
  mv "$pkgdir/usr/bin/mtrace" "$pkgdir/usr/bin/mrtrace"
  mv "$pkgdir/usr/share/man/man8/mtrace.8" "$pkgdir/usr/share/man/man8/mrtrace.8"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim: se sw=2 et: