Received: from mx.hexasoft.my (mx.hexasoft.my [198.58.111.63]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 18D3A225B9E for ; Thu, 23 Nov 2023 00:51:48 +0000 (UTC) Received: from alpine.my.domain (unknown [175.140.39.11]) by mx.hexasoft.my (Postfix) with ESMTPSA id 15A613F536; Thu, 23 Nov 2023 08:51:45 +0800 (+08) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ip2location.com; s=default; t=1700700707; bh=4MTc3o2RZoV1IL1t24NwPTL2mDCJ75BS8wGXJ6/MWIM=; h=From:To:Cc:Subject:Date:From; b=JrbmTcF/U2S5rM6z9yFo/1yWgqKlqy/aXA8SvDNVNha0q7ZchVwUd+1RJ9UsQ6ZQn jEldEuyuz+0yZZSyJNT6y3B9/c9ND2sIGbtW0HZbITAPYmzFj88qQxxolN2D9A+FWT nmAIydcNMc2WS7EQ0fc9TrRDB617g0EWl+kSewa8= From: IP2Location To: alpine-aports@lists.alpinelinux.org Cc: IP2Location Subject: [PATCH] testing/ip2locationio: new aport https://github.com/ip2location/ip2location-io-cli An official CLI tool for IP2Location.io Geolocation API service. Date: Thu, 23 Nov 2023 08:51:35 +0800 Message-Id: <20231123005135.9062-1-support@ip2location.com> X-Mailer: git-send-email 2.38.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit --- testing/ip2locationio/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 testing/ip2locationio/APKBUILD diff --git a/testing/ip2locationio/APKBUILD b/testing/ip2locationio/APKBUILD new file mode 100644 index 00000000000..0bb69c333f2 --- /dev/null +++ b/testing/ip2locationio/APKBUILD @@ -0,0 +1,33 @@ +# Maintainer: IP2Location +pkgname=ip2locationio +pkgver=1.0.2 +pkgrel=0 +pkgdesc="An official CLI tool for IP2Location.io Geolocation API service." +url="https://github.com/ip2location/ip2location-io-cli+" +arch="all" +license="MIT" +makedepends="go" +source="$pkgname-$pkgver.tar.gz::https://github.com/ip2location/ip2location-io-cli/archive/refs/tags/v$pkgver.tar.gz" + +builddir="$srcdir/ip2location-io-cli-$pkgver" + +export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" +export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" +export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" + +build() { + cd ip2locationio + go build +} + +package() { + install -Dm755 "$builddir"/ip2locationio/ip2locationio "$pkgdir"/usr/bin/ip2locationio +} + +check() { + cd ./ +} + +sha512sums=" +e5a3e49b02516dfa378ba0a4e817af1815d1007a1f5ef8d6df06d10a84fed70362a8d1105555a2e35d7d4aefc328ed18a816dbf4b45b82f69bf4e8a96fbcf251 ip2locationio-1.0.2.tar.gz +" -- 2.38.2