# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
# Maintainer: Caleb Maclennan <caleb@alerque.com>

_pyname=tld
pkgname=python-${_pyname}
pkgver=0.13.1
pkgrel=2
pkgdesc="Extracts the top level domain (TLD) from the URL given"
arch=(any)
url="https://github.com/barseghyanartur/tld"
license=('MPL' 'GPL' 'LGPL')
depends=('python')
makedepends=('python-'{build,installer,wheel}
             'python-setuptools-scm')
source=("${url}/archive/${pkgver}/${_pyname}-${pkgver}.tar.gz")
b2sums=('5b32729ee5b6fbb45d94091d88a6c351952b2fc3dd530e341eb54302a4f5d642858c56c226f3e48dd2c5b83ed8742fa06b6901f7b45921ea6aa7618882f64413')

build() {
  cd "${_pyname}-${pkgver}"
  python -m build -wn
}

package() {
  cd "${_pyname}-${pkgver}"
  python -m installer -d "${pkgdir}" dist/*.whl
}

# vim: ts=2 sw=2 et:
