diff options
author | Arkadiy Illarionov | 2024-03-10 12:35:22 +0300 |
---|---|---|
committer | Arkadiy Illarionov | 2024-03-10 12:35:22 +0300 |
commit | 2dd85ada7245211bd89e2df29ac574b0e42f8603 (patch) | |
tree | 419125ab8e1ac2af5caf7a404bc24032372e0b42 | |
parent | 90e6db7717d71a5630956891aa8f9b223615f620 (diff) | |
download | aur-2dd85ada7245211bd89e2df29ac574b0e42f8603.tar.gz |
Modernize PKGBUILD
* use description from upstream
* use SPDX license
* add descriptions to optdepends
* use sha256
* use PEP 517
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 26 insertions, 16 deletions
@@ -1,19 +1,21 @@ pkgbase = acestream-launcher - pkgdesc = Acestream Launcher allows you to open Acestream links with a Media Player of your choice + pkgdesc = Open AceStream links with a Media Player of your choice pkgver = 2.1.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/jonian/acestream-launcher arch = any - license = GPL + license = GPL-3.0-only + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python depends = python-acestream - optdepends = mpv - optdepends = libnotify optdepends = acestream-engine + optdepends = libnotify: support for desktop notifications + optdepends = mpv: default media player provides = acestream-launcher - conflicts = acestream-launcher-git source = acestream-launcher-2.1.0.tar.gz::https://github.com/jonian/acestream-launcher/archive/v2.1.0.tar.gz - md5sums = aee038c11ceebcd5c36dec9fd9286f02 + sha256sums = ab3a9a8c88d95674c9159df02625b9dd4f8827cfe1b9322dfce9dfd19f3c725c pkgname = acestream-launcher @@ -1,25 +1,33 @@ # Maintainer: Jonian Guveli <https://github.com/jonian/> pkgname=acestream-launcher pkgver=2.1.0 -pkgrel=2 -pkgdesc="Acestream Launcher allows you to open Acestream links with a Media Player of your choice" +pkgrel=3 +pkgdesc="Open AceStream links with a Media Player of your choice" arch=("any") url="https://github.com/jonian/acestream-launcher" -license=("GPL") +license=("GPL-3.0-only") depends=("python" "python-acestream") -optdepends=("mpv" "libnotify" "acestream-engine") -makedepends=("python-setuptools") +optdepends=( + "acestream-engine" + "libnotify: support for desktop notifications" + "mpv: default media player" +) +makedepends=( + python-build + python-installer + python-setuptools + python-wheel +) provides=("${pkgname}") -conflicts=("${pkgname}-git") source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") -md5sums=("aee038c11ceebcd5c36dec9fd9286f02") +sha256sums=('ab3a9a8c88d95674c9159df02625b9dd4f8827cfe1b9322dfce9dfd19f3c725c') build() { cd "${srcdir}/${pkgname}-${pkgver}" - python setup.py build + python -m build --wheel --no-isolation } package() { cd "${srcdir}/${pkgname}-${pkgver}" - python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl } |