diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-03 07:58:29 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-03 07:58:44 +0000 |
commit | a3716ac9e5d465c0f10e6eb98a1b35fdb22110b0 (patch) | |
tree | 5b6f5e8d0dfc1ce1267b14a0d28c1aee094e1a19 | |
parent | 7cf6b47bbc58136d83affe26ea49431105d17810 (diff) | |
download | aports-a3716ac9e5d465c0f10e6eb98a1b35fdb22110b0.tar.bz2 aports-a3716ac9e5d465c0f10e6eb98a1b35fdb22110b0.tar.xz |
main/geoip$: add check(), modernize APKBUILD
-rw-r--r-- | main/geoip/APKBUILD | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/main/geoip/APKBUILD b/main/geoip/APKBUILD index a31581a3aa..a484489e16 100644 --- a/main/geoip/APKBUILD +++ b/main/geoip/APKBUILD @@ -1,4 +1,3 @@ -# Contributor: # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname="geoip" _realname="GeoIP" @@ -8,23 +7,20 @@ pkgdesc="Lookup countries by IP addresses" url="http://www.maxmind.com/app/ip-location" arch="all" license="GPL" -depends= makedepends="zlib-dev" -install= subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/maxmind/geoip-api-c/releases/download/v$pkgver/$_realname-$pkgver.tar.gz geoip.cron" - -_builddir="$srcdir"/$_realname-$pkgver +builddir="$srcdir"/$_realname-$pkgver prepare() { - cd "$_builddir" + cd "$builddir" # update_config_sub || return 1 return 0 } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -34,15 +30,19 @@ build() { --infodir=/usr/share/info \ || return 1 make || return 1 - make check || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 mkdir -p "$pkgdir"/usr/share/GeoIP install -m755 -D ../../geoip.cron "$pkgdir"/etc/periodic/monthly/geoip } +check() { + cd "$builddir" + make check || return 1 +} + sha512sums="67b53d70372b96fb24cfa291a243cd324240b8a99800651cdb4d243a28ac2ea9926858edbc300a73ee797e50dc427188c7073ce47a2160d7d689a4ff555e6277 GeoIP-1.6.10.tar.gz 5fc4003b57f5a0514c42764a6c6d28c2db926ea244f125accf490648adc9d172215e0d16426f49d79e1c465fea2c71b591636f1038d683c77535d2d93811a73e geoip.cron" |