# Maintainer: Daniel M. Capella <polyzen@archlinux.org>

pkgname=termdown
pkgver=1.18.0
pkgrel=6
pkgdesc='Countdown timer and stopwatch in your terminal'
arch=('any')
url=https://github.com/trehn/termdown
license=('GPL3')
depends=('python-click' 'python-dateutil' 'python-pyfiglet')
makedepends=(
  'git'
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
)
optdepends=('espeak-ng: for spoken countdown')
source=("git+$url.git#tag=$pkgver")
b2sums=('12ebdce29d3fffd860ac56bc1e2bf70a1885f492aca7454dc77a61394a2561926280bc328884d97e95b1b2114d8bf1992cbeb4b8b2deeb7fb353705e535c0a48')

build() {
  cd $pkgname
  python -m build --wheel --skip-dependency-check --no-isolation
}

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