summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24310af0a0c6ce00f6a5472e1b1612c82a7a1c44 (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
# Maintainer: amo <https://aur.archlinux.org/account/amo>

_pkgname=ipware
pkgname=python-ipware
pkgver=2.0.3
pkgrel=2
pkgdesc="Returns the best matched IP address from a given HTTP(s) header in Python"
arch=('any')
url="https://github.com/un33k/python-ipware"
license=('MIT')
makedepends=('python-build' 'python-installer' 'python-setuptools')
conflicts=('python-django-ipware')
source=("$pkgname-$pkgver.src.tar.gz::https://github.com/un33k/python-ipware/archive/v$pkgver.tar.gz")
sha256sums=('499b141f4de01d27b548e57a604a99408122fc5ecd1e96aa53a2ee20035ccc8d')

build() {
  cd "$pkgname-$pkgver" || exit
  python -m build --wheel --no-isolation
}

package() {
  cd "$pkgname-$pkgver" || exit
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}