~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[#GJN-886-58677]: [PATCH] testing/ip2location: new aport

IP2Location Customer Success <support@ip2location.com>
Details
Message ID
<34c327b642c0bbf3428992bfc89efed2@kayako.hexasoft.com.my>
DKIM signature
missing
Download raw message
Patch: +31 -0
https://www.ip2location.com/development-libraries/ip2location/c
Lookup country, region and city information by IP addresses
---
 testing/ip2location/APKBUILD | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 testing/ip2location/APKBUILD

diff --git a/testing/ip2location/APKBUILD b/testing/ip2location/APKBUILD
new file mode 100644
index 0000000000..bb96dcc7eb
--- /dev/null
+++ b/testing/ip2location/APKBUILD
@@ -0,0 +1,31 @@
# Maintainer: IP2Location <support@ip2location.com>
pkgname=ip2location
_pkgname="IP2Location"
pkgver=8.5.1
pkgrel=1
pkgdesc="Lookup country, region and city information by IP addresses"
url="https://www.ip2location.com/development-libraries/ip2location/c"
arch="all"
license="GPL"
makedepends="autoconf zlib-dev"
subpackages="$pkgname-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
       make
}

package() {
       make install
}

check() {
       make check
}

sha512sums="
f6bebed88957eb17a5d2eb781808aa755f10ebbffe2cbd21d6c4fe7ece8dedd18ba784fb95ed05f92626c5931a4e5e66cc8a7440389331e3e34eb00c3a523445  8.5.1.zip
"
-- 
2.38.2


Regards,

SK Kiu
IP2Location Customer Success Team
Hexasoft Development Sdn Bhd
Website: https://www.ip2location.com
Facebook: https://www.facebook.com/ip2location
Twitter: https://www.twitter.com/ip2location
Details
Message ID
<Y7UfMJjQQiDMU/JJ@1e0710366712>
In-Reply-To
<34c327b642c0bbf3428992bfc89efed2@kayako.hexasoft.com.my> (view parent)
DKIM signature
missing
Download raw message
On Wed, Jan 04, 2023 at 10:47:32AM +0800, IP2Location Customer Success wrote:
> https://www.ip2location.com/development-libraries/ip2location/c
> Lookup country, region and city information by IP addresses
> ---
>  testing/ip2location/APKBUILD | 31 +++++++++++++++++++++++++++++++
>  1 file changed, 31 insertions(+)
>  create mode 100644 testing/ip2location/APKBUILD
> 
> diff --git a/testing/ip2location/APKBUILD b/testing/ip2location/APKBUILD
> new file mode 100644
> index 0000000000..bb96dcc7eb
> --- /dev/null
> +++ b/testing/ip2location/APKBUILD
> @@ -0,0 +1,31 @@
> +# Maintainer: IP2Location <support@ip2location.com>
> +pkgname=ip2location
> +_pkgname="IP2Location"
> +pkgver=8.5.1
> +pkgrel=1
> +pkgdesc="Lookup country, region and city information by IP addresses"
> +url="https://www.ip2location.com/development-libraries/ip2location/c"
> +arch="all"
> +license="GPL"

We use [SPDX license designations][0], so you'd have to be more specific
than just GPL, but if I look at the github repo, the license seems to be
MIT?

> +makedepends="autoconf zlib-dev"

automake is missing

> +subpackages="$pkgname-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

This should be added in the prepare phase:

  prepare() {
  	default_prepare
  
  	autoreconf -i -v --force
  }

> +       ./configure
> +       make
> +}
> +
> +package() {
> +       make install
> +}
> +
> +check() {
> +       make check
> +}

Just a minor issue, but we typically put the check phase after build and before
package to match the actual execution order.

> +
> +sha512sums="
> +f6bebed88957eb17a5d2eb781808aa755f10ebbffe2cbd21d6c4fe7ece8dedd18ba784fb95ed05f92626c5931a4e5e66cc8a7440389331e3e34eb00c3a523445  8.5.1.zip
> +"
> -- 
> 2.38.2
> 
> 
> Regards,
> 
> SK Kiu
> IP2Location Customer Success Team
> Hexasoft Development Sdn Bhd
> Website: https://www.ip2location.com
> Facebook: https://www.facebook.com/ip2location
> Twitter: https://www.twitter.com/ip2location

Created a merge request:
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/42862

[0]:https://spdx.org/licenses/
Reply to thread Export thread (mbox)