blob: 73e370b1f6222046e4395b37f460900ee6f6a95c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: IP2Location <support@ip2location.com>
pkgname=ip2location-python # AUR package name in lowercase
_pkgname=IP2Location-Python # Original GitHub repo name
pkgver=8.10.2 # Replace with the actual latest version
pkgrel=1
pkgdesc="A Python Library that enables the user to find the geolocation that any IP address or host name originates from."
arch=('any')
url="https://github.com/chrislim2888/IP2Location-Python"
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
provides=('ip2location-python')
conflicts=('ip2location-python')
source=("$_pkgname-$pkgver.tar.gz::https://github.com/chrislim2888/IP2Location-Python/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('0b35b2cc8992ea2ff9c85791652a2d8215380461940c7882e87cb9dce84fc434')
build() {
cd "$srcdir/$_pkgname-$pkgver"
# Build the wheel
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
# Use python -m installer to install into the package directory
python -m installer --destdir="$pkgdir" dist/*.whl
}
|