aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmaxminddb
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-05-29 09:23:20 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-05-29 09:26:12 +0300
commit50f1259b62f78ad929a8b4e0189bfa59da696aab (patch)
tree9df130cef934e9ae5dee8f2c054ebacbbf94da23 /main/libmaxminddb
parent0869f63689d9d7fb8ac57e8deeec48756e9b24cf (diff)
downloadaports-50f1259b62f78ad929a8b4e0189bfa59da696aab.tar.bz2
aports-50f1259b62f78ad929a8b4e0189bfa59da696aab.tar.xz
main/libmaxminddb: upgrade to 1.2.1, modernize aport
Diffstat (limited to 'main/libmaxminddb')
-rw-r--r--main/libmaxminddb/APKBUILD37
1 files changed, 13 insertions, 24 deletions
diff --git a/main/libmaxminddb/APKBUILD b/main/libmaxminddb/APKBUILD
index 3e0d83f240..c4c720287c 100644
--- a/main/libmaxminddb/APKBUILD
+++ b/main/libmaxminddb/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libmaxminddb
-pkgver=1.2.0
+pkgver=1.2.1
pkgrel=0
pkgdesc="Maxmind GeoIP2 database library"
url="https://github.com/maxmind/libmaxminddb"
@@ -16,31 +16,26 @@ source="$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz
libmaxminddb.confd
"
-_builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
- --with-pic \
- || return 1
- make || return 1
+ --with-pic
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make install DESTDIR="$pkgdir" || return 1
+ cd "$builddir"
+ make install DESTDIR="$pkgdir"
# install alpine specifics
mkdir -p "$pkgdir"/var/lib/libmaxminddb
@@ -48,12 +43,6 @@ package() {
install -m755 -D "$srcdir"/libmaxminddb.confd "$pkgdir"/etc/conf.d/libmaxminddb
}
-md5sums="fae9021779dffe1b87f038d21f8afd56 libmaxminddb-1.2.0.tar.gz
-3866d16335eeaa8573cf625981979a56 libmaxminddb.cron
-f86fba9d801d5f9c76166c11c224f474 libmaxminddb.confd"
-sha256sums="1fe859ed714f94fc902a145453f7e1b5cd928718179ba4c4fcb7f6ae0df7ad37 libmaxminddb-1.2.0.tar.gz
-34f32f544f0537e37783de61f09e4b5b7b080aaa2e9514afe1eaea8425f547e9 libmaxminddb.cron
-f8af67264b8711ab40f99d364e4987c14f4928932624993c72188f59203526be libmaxminddb.confd"
-sha512sums="ebfa358c3f9cae8b13ca52d47e26d5e3e036e8455432b9fa250b13c59d71addf7748ab112ac926a177b646706b27651b733810dde497786fe65c9d150e621af9 libmaxminddb-1.2.0.tar.gz
+sha512sums="c77e2714c30dbd9d83a755d7e4d24016534510f4cc7213fe9549d610bf79aaeb28f761a9fb769270d9043b1baab537c5a4b3a9994b525d48f395fe94c104b5b3 libmaxminddb-1.2.1.tar.gz
1feb1f2dd57991d729b6f9d29834f43d7405038cdbdfb0113a0e8f8f951a74c5e40651f9d241460f110acdd300196cf580b370e6cec56985cca797ba5610e622 libmaxminddb.cron
5f8dc6dad84cb1d188504a22470acf89542755c0bb3a78e4d3ae4e5bfa49fe64a7d2ee17441084db2710115463d39361df060a74b3a48fc4d8fc5e802afd2099 libmaxminddb.confd"