summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD52
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..81c110b0be1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Wed Jan 20 09:58:27 UTC 2016
+pkgbase = libx32-geoip
+ pkgdesc = Non-DNS IP-to-country resolver C library & utils (x32 ABI)
+ pkgver = 1.6.6
+ pkgrel = 1.1
+ url = http://www.maxmind.com/app/c
+ arch = x86_64
+ license = GPL
+ makedepends = autoconf
+ makedepends = libtool
+ depends = libx32-zlib
+ depends = geoip-database
+ depends = geoip
+ options = !emptydirs
+ source = geoip-1.6.6.tar.gz::https://github.com/maxmind/geoip-api-c/archive/v1.6.6.tar.gz
+ sha256sums = db8ed5d07292c75cb3018738e6411037f15cc2a517f38ee04c1232cbe3d30b46
+
+pkgname = libx32-geoip
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d0b27a753e8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# $Id: PKGBUILD 249863 2015-10-30 14:00:49Z juergen $
+# Maintainer: Dan McGee <dan@archlinux.org>
+# Contributor: Manolis Tzanidakis <manolis@archlinux.org>
+
+_pkgbasename=geoip
+pkgname=libx32-geoip
+pkgver=1.6.6
+pkgrel=1.1
+pkgdesc="Non-DNS IP-to-country resolver C library & utils (x32 ABI)"
+arch=('x86_64')
+url="http://www.maxmind.com/app/c"
+license=('GPL')
+depends=('libx32-zlib' 'geoip-database' "geoip")
+makedepends=('autoconf' 'libtool')
+options=('!emptydirs')
+source=($_pkgbasename-$pkgver.tar.gz::https://github.com/maxmind/${_pkgbasename}-api-c/archive/v${pkgver}.tar.gz)
+sha256sums=('db8ed5d07292c75cb3018738e6411037f15cc2a517f38ee04c1232cbe3d30b46')
+
+prepare() {
+ cd geoip-api-c-$pkgver
+ autoreconf -vi
+}
+
+build() {
+ cd geoip-api-c-$pkgver
+ export CC="gcc -mx32"
+ export CXX="g++ -mx32"
+ export PKG_CONFIG_PATH="/usr/libx32/pkgconfig"
+
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/libx32 \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc/geoip
+ make
+}
+
+check() {
+ cd geoip-api-c-$pkgver
+ ln -sf /usr/share/GeoIP data
+ make check
+}
+
+package() {
+ cd geoip-api-c-$pkgver
+ make DESTDIR="$pkgdir" install
+ rm -rf "${pkgdir}"/usr/{include,share,bin}
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et: