[arch-commits] Commit in libmaxminddb/repos/community-x86_64 (PKGBUILD)
Massimiliano Torromeo
mtorromeo at archlinux.org
Wed Nov 29 16:45:06 UTC 2017
Date: Wednesday, November 29, 2017 @ 16:45:05
Author: mtorromeo
Revision: 270723
archrelease: copy trunk to community-x86_64
Added:
libmaxminddb/repos/community-x86_64/PKGBUILD
(from rev 270722, libmaxminddb/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: libmaxminddb/repos/community-x86_64/PKGBUILD (from rev 270722, libmaxminddb/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2017-11-29 16:45:05 UTC (rev 270723)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: frank AT apsu DOT be
+
+pkgname=(libmaxminddb mmdblookup)
+
+pkgver=1.3.1
+pkgrel=1
+pkgdesc="MaxMind GeoIP2 database - split package with library and utilities"
+license=('Apache')
+arch=('x86_64')
+url="http://dev.maxmind.com/geoip/geoip2/downloadable/"
+optdepends=('geoip2-database: IP geolocation databases')
+source=("https://github.com/maxmind/libmaxminddb/releases/download/$pkgver/libmaxminddb-$pkgver.tar.gz")
+sha256sums=('5d55a1327dcca5c819a6a7a260afc0d1bd9626824e40073c7564fdb8d91ca186')
+
+build() {
+ cd "$srcdir"/libmaxminddb-$pkgver
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$srcdir"/libmaxminddb-$pkgver
+ make check
+}
+
+package_libmaxminddb() {
+ pkgdesc="MaxMindDB GeoIP2 database library"
+ depends=('glibc')
+
+ cd "$srcdir"/libmaxminddb-$pkgver
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+ rm -rf "$pkgdir"/usr/{bin,share/man/man1}
+}
+
+package_mmdblookup() {
+ pkgdesc="MaxMindDB GeoIP2 lookup utility"
+ depends=('libmaxminddb')
+
+ cd "$srcdir"/libmaxminddb-$pkgver
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+ rm -rf "$pkgdir"/usr/{lib,include,share/man/man3}
+}
More information about the arch-commits
mailing list