summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67646567f6dc9e0faf951968c6577dba173faac3 (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
29
# Maintainer: tarball <bootctl@gmail.com>
# Contributor: Karol Babioch <karol@babioch.de>

pkgname='python-cymruwhois'
pkgver=1.6
pkgrel=7
pkgdesc='Client for the whois.cymru.com service'
arch=('any')
url='https://pythonhosted.org/cymruwhois'
license=('MIT')
depends=('python')
optdepends=(
  'python-memcached: optional caching in memcached'
)
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("$pkgname-$pkgver.tar.gz::https://github.com/JustinAzoff/$pkgname/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('357bd4beaab4c857062984cfd6b85606e3ff6b39e6e5420f428961ab2a9f2434')

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

package() {
  cd "$srcdir/$pkgname-$pkgver"

  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}