summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71fd56f39572c0c4b01b9e1f0af3f8a05728aa6e (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
# Maintainer: frank AT apsu DOT be
pkgname=geoipmarker
pkgver=1.0.0
pkgrel=1
pkgdesc="Use iptables NFQUEUE to mark packets by country, using a MaxMind GeoIP2 Database"
license=('AGPL3')
arch=(i686 x86_64)
url="https://github.com/m4rienf/GeoIPMarker"

depends=("libmaxminddb"
         "libnetfilter_queue")

provides=(geoipmarker)

install=geoipmarker.install

source=("https://github.com/m4rienf/GeoIPMarker/releases/download/v$pkgver/geoipmarker-$pkgver.tar.bz2"
	    "geoipmarker.install"
)

sha512sums=('f3c5ccf3160773c05056b06d76b40b0c10e5493dbc75fb08cf072637cdae76f2991187d771203f34bad8cd625c998038f7ce1e932ed6331eb6093f9bcfff9ad3'
            '48cb041991cbf5aaacd7d9177eeaf5940897f271bc8fced7d02d4d315bd568dd7b17f9a446bfc3506b317a99efacc2e17fe6faaa3e1a6245c513c11425f66a46')

build() {
	cd "$srcdir/geoipmarker-$pkgver"
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/geoipmarker-$pkgver"
    make PREFIX=/usr DESTDIR="$pkgdir" install
}