~alpine/aports

testing/ip2location: new aport v1 APPLIED

: 1
 testing/ip2location: new aport

 1 files changed, 33 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/4155/mbox | git am -3
Learn more about email & git

[PATCH] testing/ip2location: new aport Export this patch

https://www.ip2location.com
Lookup country, region and city information by IP addresses
---
 testing/ip2location/APKBUILD | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 testing/ip2location/APKBUILD

diff --git a/testing/ip2location/APKBUILD b/testing/ip2location/APKBUILD
new file mode 100644
index 00000000000..971c2bb29b0
--- /dev/null
+++ b/testing/ip2location/APKBUILD
@@ -0,0 +1,33 @@
# Maintainer: IP2Location <support@ip2location.com>
pkgname=ip2location
pkgver=8.5.1
pkgrel=0
pkgdesc="Lookup country, region and city information by IP addresses"
url="https://www.ip2location.com/development-libraries/ip2location/c"
arch="all"
license="MIT"
subpackages="$pkgname-dev $pkgname-doc"
checkdepends="perl"
makedepends="build-base automake autoconf libtool zlib-dev"
source="https://github.com/chrislim2888/IP2Location-C-Library/archive/refs/tags/$pkgver.zip"
builddir="$srcdir"/IP2Location-C-Library-$pkgver

build() {
       autoreconf -i -v --force
       ./configure --prefix=/usr
       make
}

package() {
       make install DESTDIR="$pkgdir"
}

check() {
       cd data
       ./ip-country.pl
       make check
}

sha512sums="
f6bebed88957eb17a5d2eb781808aa755f10ebbffe2cbd21d6c4fe7ece8dedd18ba784fb95ed05f92626c5931a4e5e66cc8a7440389331e3e34eb00c3a523445  8.5.1.zip
"
-- 
2.38.2