summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9475365624c237dc8295f1dc9aab714780ad80d (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
# Maintainer: SanskritFritz (gmail)

pkgname=iprange-git
_gitname=iprange
pkgver=v1.0.3.r1.g2626207
pkgrel=1
pkgdesc="Manage IP ranges. From the FireHOL project."
url="http://firehol.org/"
arch=('i686' 'x86_64' 'armv7h')
license=('GPL')
depends=('glibc')
makedepends=('git' 'help2man')
provides=('iprange')
conflicts=('iprange')
source=("$_gitname::git+https://github.com/firehol/iprange")

pkgver() {
	cd "$_gitname"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$_gitname"

	./autogen.sh
	./configure --enable-maintainer-mode --prefix="/usr" --sysconfdir="/etc" --sbindir="/usr/bin"
	make
}

package() {
	cd "$_gitname"

	make prefix="$pkgdir/usr" sysconfdir="$pkgdir/etc" sbindir="$pkgdir/usr/bin" install
}

md5sums=('SKIP')