archrelease: copy trunk to community-any
[arch-community.git] / python-tld / trunk / PKGBUILD
blob979ab266cbc64bb393f9cfb7b3f9a362b2447a02
1 # Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
2 # Maintainer: Caleb Maclennan <caleb@alerque.com>
4 _pyname=tld
5 pkgname=python-${_pyname}
6 pkgver=0.13
7 pkgrel=4
8 pkgdesc="Extracts the top level domain (TLD) from the URL given"
9 arch=(any)
10 url="https://github.com/barseghyanartur/tld"
11 license=('MPL' 'GPL' 'LGPL')
12 depends=('python')
13 makedepends=('python-'{build,installer,wheel}
14              'python-setuptools-scm')
15 source=("${url}/archive/${pkgver}/${_pyname}-${pkgver}.tar.gz")
16 b2sums=('9f84307ce704500096dd2abff75ead534dbd17b59ea0d3dae84394b791aeee873638e6e224ddd3b5c598293a46ead964ae36022b0c3c7411de7c64096d0c69cc')
18 build() {
19   cd "${_pyname}-${pkgver}"
20   python -m build -wn
23 package() {
24   cd "${_pyname}-${pkgver}"
25   python -m installer -d "${pkgdir}" dist/*.whl
28 # vim: ts=2 sw=2 et: