diff options
author | Mubashshir | 2022-08-28 09:16:36 +0600 |
---|---|---|
committer | Mubashshir | 2022-09-02 22:25:59 +0600 |
commit | aba05c8e4f435950ad11129299502f096b3cccf8 (patch) | |
tree | 36edd556e47fd8ed8b787cf7a8828d4f66ae9368 | |
parent | 5bbc4bb9e6c4773a68e590d2f784b8a680b21215 (diff) | |
download | aur-aba05c8e4f435950ad11129299502f096b3cccf8.tar.gz |
trakt-scrobbler-git: Switch to python-build
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 17 insertions, 13 deletions
@@ -1,13 +1,15 @@ pkgbase = trakt-scrobbler-git pkgdesc = Automatically scrobble TV show episodes and movies you are watching to Trakt.tv! It keeps a history of everything you've watched! pkgver = 1.5.0.r1.gb2b4d44 - pkgrel = 1 + pkgrel = 2 url = https://github.com/iamkroot/trakt-scrobbler arch = any license = GPL2 makedepends = git - makedepends = python-setuptools - makedepends = python-dephell + makedepends = python-poetry-core + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel makedepends = go-md2man makedepends = gzip depends = systemd @@ -4,7 +4,7 @@ pkgname=trakt-scrobbler-git pkgver=1.5.0.r1.gb2b4d44 -pkgrel=1 +pkgrel=2 pkgdesc="Automatically scrobble TV show episodes and movies you are watching to Trakt.tv! It keeps a history of everything you've watched!" arch=(any) @@ -33,8 +33,10 @@ depends=( ) makedepends=( git - python-setuptools - python-dephell + python-poetry-core + python-build + python-installer + python-wheel go-md2man gzip ) @@ -58,21 +60,21 @@ pkgver() { ) } -prepare() { - cd "${pkgname%*-git}" - dephell deps convert --from pyproject.toml --to setup.py -} - build() { cd "$srcdir/${pkgname%*-git}" - python setup.py build + python -m build --no-isolation --wheel go-md2man -in "$srcdir/trakts-man.md" 2>/dev/null|gzip -n > trakts.1.gz } package() { + _pkgname=${pkgname%*-git} + _py=$(python --version) + _py=${_py%%.*} + cd "$srcdir/${pkgname%*-git}" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" \ + "dist/${_pkgname//-/_}-${pkgver%.r*}-py${_py##* }-none-any.whl" # Completions install -Dm755 "$srcdir/${pkgname%*-git}/completions/trakts.zsh" "$pkgdir/usr/share/zsh/site-functions/_trakts" |