blob: e331f0195f619c21ff4bf4cdee238ea38657530e (
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
|
# Maintainer: Hao Long <aur@esd.cc>
pkgname=bgpq3-git
pkgver=0.1.35.r9.g14bff82
pkgrel=3
pkgdesc="bgp filtering automation tool"
arch=("x86_64" "i686")
url="https://github.com/snar/bgpq3"
license=('BSD')
provides=('bgpq3')
conflicts=('bgpq3')
depends=('glibc')
makedepends=('git')
source=("$pkgname::git+https://github.com/snar/bgpq3.git"
"01-fix-man-location.patch")
sha256sums=('SKIP'
'4723df01270b3c4b712768b9f867ac72c9070ab7a96469f0aa34d65769e8412c')
pkgver() {
cd $pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $pkgname
patch -Np1 -i ${srcdir}/01-fix-man-location.patch
}
build() {
cd $pkgname
./configure --prefix=$pkgdir/usr
make -j $(nproc)
}
package() {
cd $pkgname
make install
install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYRIGHT
install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}
|