summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2016-05-23 22:25:29 -0600
committerBrian Bidulock2016-05-23 22:25:29 -0600
commitea3ad105326a83ce09288a356b6385671e72d524 (patch)
treea113a5982a030d9eb56a037783697dae7cf4105e
downloadaur-ea3ad105326a83ce09288a356b6385671e72d524.tar.gz
initial version
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD36
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9684b236ef9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Tue May 24 04:25:28 UTC 2016
+pkgbase = geoip-git
+ pkgdesc = Non-DNS IP-to-country resolver C library & utils
+ pkgver = 1.6.9.r8.g6e18deb
+ pkgrel = 1
+ epoch = 1
+ url = http://www.maxmind.com/app/c
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = zlib
+ depends = geoip-database
+ provides = geoip
+ conflicts = geoip
+ source = geoip-git::git://github.com/maxmind/geoip-api-c.git
+ sha256sums = SKIP
+
+pkgname = geoip-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1e8da68983e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Contributor: Yosef Or Boczko <yoseforb@gmail.com>
+
+pkgname=geoip-git
+pkgver=1.6.9.r8.g6e18deb
+pkgrel=1
+pkgdesc="Non-DNS IP-to-country resolver C library & utils"
+epoch=1
+arch=('i686' 'x86_64')
+url="http://www.maxmind.com/app/c"
+license=('GPL')
+depends=('zlib' 'geoip-database')
+source=("$pkgname::git://github.com/maxmind/geoip-api-c.git")
+sha256sums=('SKIP')
+conflicts=('geoip')
+provides=('geoip')
+
+pkgver() {
+ cd $pkgname
+ git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd $pkgname
+ autoreconf -fiv
+ ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc/geoip \
+ --disable-data-files
+ make
+}
+
+package() {
+ cd $pkgname
+ make DESTDIR="$pkgdir" install
+}