summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorArkadiy Illarionov2024-03-10 12:35:22 +0300
committerArkadiy Illarionov2024-03-10 12:35:22 +0300
commit2dd85ada7245211bd89e2df29ac574b0e42f8603 (patch)
tree419125ab8e1ac2af5caf7a404bc24032372e0b42
parent90e6db7717d71a5630956891aa8f9b223615f620 (diff)
downloadaur-2dd85ada7245211bd89e2df29ac574b0e42f8603.tar.gz
Modernize PKGBUILD
* use description from upstream * use SPDX license * add descriptions to optdepends * use sha256 * use PEP 517
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD26
2 files changed, 26 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e9446e30cc9d..3c6438c60074 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 334724f6f71b..f99dee06d788 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}