summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordakataca2022-09-28 21:46:14 -0500
committerdakataca2022-09-28 21:46:14 -0500
commit8105a3ebbdcf6a20dd848fdc42535eca070a8bdf (patch)
tree6b599d0f9a95c1002f223e03b2964ea87ebfc959
downloadaur-8105a3ebbdcf6a20dd848fdc42535eca070a8bdf.tar.gz
Commit initial
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD39
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..3da9bd2e3804
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = deemix-py
+ pkgdesc = A barebone deezer downloader library
+ pkgver = 3.6.6
+ pkgrel = 1
+ url = https://pypi.org/project/deemix/
+ arch = any
+ license = GPL3
+ makedepends = python-build
+ makedepends = python-installer
+ makedepends = python-wheel
+ depends = python>=3.7
+ depends = python-click
+ depends = python-pycryptodomex
+ depends = python-mutagen
+ depends = python-requests
+ depends = python-deezer-py>=1.3.0
+ depends = python-spotipy>=2.11.0
+ conflicts = deemix
+ conflicts = deemix-git
+ source = https://files.pythonhosted.org/packages/source/d/deemix/deemix-3.6.6.tar.gz
+ sha256sums = c446a1cc0d4f22b18f7e79ce72e5d02d5429495394164ebfd2ff5588b8160b09
+
+pkgname = deemix-py
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..2a8878cb2e9b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: dakataca <danieldakataca@gmail.com>
+# Contributor: Vyacheslav Konovalov <🦀vk@protonmail.com>
+
+pkgname=deemix-py
+_name=deemix
+pkgver=3.6.6
+pkgrel=1
+pkgdesc='A barebone deezer downloader library'
+arch=(any)
+url='https://pypi.org/project/deemix/'
+license=('GPL3')
+depends=(
+ 'python>=3.7' 'python-click' 'python-pycryptodomex' 'python-mutagen'
+ 'python-requests' 'python-deezer-py>=1.3.0' 'python-spotipy>=2.11.0'
+)
+conflicts=('deemix' 'deemix-git')
+makedepends=('python-build' 'python-installer' 'python-wheel')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
+sha256sums=(c446a1cc0d4f22b18f7e79ce72e5d02d5429495394164ebfd2ff5588b8160b09)
+
+pkgver() {
+ cd ${srcdir}/${_name}-${pkgver}
+ #awk -F'"' '/^ +version="[0-9\.]+,/{ print $2}' setup.py | tr -d '\n'
+ sed -En 's/^ +version="([0-9\.]+)",$/\1/p' setup.py | tr -d '\n'
+}
+
+
+build() {
+ cd ${srcdir}/${_name}-${pkgver}/
+ python -m build --wheel --no-isolation
+}
+
+package() {
+ cd ${srcdir}/${_name}-${pkgver}/
+ python -m installer --destdir="${pkgdir}" dist/*.whl
+}
+
+# Test: rm -f deemix-3.6.6{-1.src.tar.gz,.tar.gz,-1-any.pkg.tar.zst} -rf {pkg,src}/ deemix-py-3.6.6-1{-any.pkg.tar.zst,.src.tar.gz}
+# References: https://wiki.archlinux.org/title/Python_package_guidelines#Installation_methods