pkgbuilds/bird-babel-rtt-debug-git/PKGBUILD

49 lines
1.2 KiB
Text
Raw Permalink Normal View History

_pkgname=bird
pkgname=$_pkgname-babel-rtt-debug-git
2022-12-07 15:14:54 +08:00
pkgver=r3837.d6dd113a
pkgrel=1
pkgdesc='RIP, OSPF, BGP, MPLS, BFD, Babel routing daemon (with babel-rtt)'
arch=('x86_64')
2022-12-07 15:14:54 +08:00
url='https://github.com/isjerryxiao/bird'
license=('GPL2')
backup=('etc/bird.conf')
makedepends=('git' 'autoconf' 'automake')
depends=('glibc' 'readline' 'ncurses' 'libssh')
conflicts=("$_pkgname")
provides=("$_pkgname")
replaces=('bird6')
options=(!emptydirs debug strip)
2022-12-07 15:14:54 +08:00
source=("${_pkgname}::git+https://github.com/isjerryxiao/bird.git#branch=master"
'bird.service'
)
sha256sums=('SKIP'
'4aa1e8d41229badd276aa3747f613e7df34761892add2258c63bdb5097dfeb2b')
pkgver() {
cd $_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $_pkgname
autoreconf -ifv
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--localstatedir=/var \
--runstatedir=/run/$_pkgname \
--docdir=/usr/share/doc/$_pkgname
make
}
package () {
cd $_pkgname
make DESTDIR="$pkgdir" install
# systemd
install -D -m 644 "$srcdir/bird.service" "$pkgdir/usr/lib/systemd/system/bird.service"
}
# vim:set ts=2 sw=2 et: