summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cf46646f8a40819675af7008626a223208731f1 (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
# Maintainer: Anthony25 <anthony.ruhier @ gmail.com>

pkgname=pg2ipset-git
pkgver=57.2b14fdf
pkgrel=1
pkgdesc='Converts PG2 IP Blocklists into lists that ipset under Linux can consume'
arch=('any')
license=('GPLv2')
url="https://github.com/ilikenwf/pg2ipset"
provides=('pg2ipset')
conflict=('pg2ipset')
source=('git://github.com/ilikenwf/pg2ipset.git')
md5sums=('SKIP')

_gitname="pg2ipset"

pkgver() {
  cd $_gitname
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $_gitname
  make build

  install -D -m 755 pg2ipset $pkgdir/usr/bin/pg2ipset
}