diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 14 insertions, 16 deletions
@@ -1,9 +1,8 @@ # Maintainer: Jason Nader <jason *add-dot-here* nader *you-know-what-goes-here* protonmail.com> pkgname='catt-git' -_pkgname=catt -pkgver=0.12.5.r7.g79d8e5a -pkgrel=2 +pkgver=v0.12.9.r6.ge30fa5c +pkgrel=1 pkgdesc='Cast All The Things - Send videos from many, many online sources to your Chromecast.' arch=('any') url="https://github.com/skorokithakis/catt" @@ -16,30 +15,29 @@ depends=( 'python-pychromecast>=7.5.0' 'python-requests' 'youtube-dl>=2020.06.06') -makedepends=('git' 'python-dephell' 'python-setuptools') +makedepends=( + 'git' + 'python-poetry' + 'python-setuptools' +) source=("${pkgname%-*}::git+https://github.com/skorokithakis/catt.git") sha256sums=('SKIP') provides=("catt") conflicts=("catt") pkgver() { - cd "$_pkgname" - git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' -} - -prepare() { - cd "$_pkgname" - dephell deps convert --from pyproject.toml --to setup.py + cd "${pkgname%-*}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { - cd "$_pkgname" - python setup.py build + cd "${pkgname%-*}" + python -m poetry build --format wheel } package() { - cd "$_pkgname" - install -Dm644 README.rst "${pkgdir}"/usr/share/doc/"${pkgname}"/README.rst + cd "${pkgname%-*}" + install -Dm644 README.md "${pkgdir}"/usr/share/doc/"${pkgname}"/README.md install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE - python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl } |