# Maintainer: Yigit Sever # Contributor: Caltlgin Stsodaat pkgname=unsilence pkgver=1.0.9 pkgrel=2 pkgdesc='Console Interface and Library to remove silent parts of a media file' arch=('any') url='https://github.com/lagmoellertim/unsilence' license=('MIT') depends=('ffmpeg' 'python' 'python-rich') makedepends=('python-setuptools') source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") sha256sums=('5ce2efff1cbbdb42b66bf3eb28f326a51bed2a03ddf57de02cd6a634ca15cc5b') build() { cd "${pkgname}-${pkgver}" sed -i 's/rich~=10.10.0/rich>=10.10.0/' requirements.txt python setup.py build } package() { cd "${pkgname}-${pkgver}" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" 'README.md' install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" 'LICENSE' rm -r "${pkgdir}/usr/lib/python"*'/site-packages/examples' }