# Maintainer: Dashon Wells # Contributor Michael Riegert # Contributor: Evan McCarthy # Contributor: Sibren Vasse # Contributor: Clint Valentine # Contributor: xiota # Contributor: yochananmarqos pkgname="catt" pkgver=0.12.11 pkgrel=3 pkgdesc='Cast All The Things - Send videos from many, many online sources to your Chromecast.' arch=('any') url="https://github.com/skorokithakis/catt" license=('BSD') depends=( 'python-click' 'python-ifaddr' 'python-requests' 'python-importlib-metadata' # silence namcap warning 'python-pychromecast' 'yt-dlp') makedepends=( 'python-installer' 'python-poetry' 'python-setuptools' ) source=("$pkgname-$pkgver.tar.gz"::"$url/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('82d69d963696dfe3cfece6bdb03d96e35c80351ca8231d51b9da15bd1d3c8c4d') build() { cd "$pkgname-$pkgver" GIT_DIR='.' python -m poetry build --format wheel } package() { cd "$pkgname-$pkgver" install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE python -m installer --destdir="$pkgdir" dist/*.whl }