diff options
author | Egor Vorontsov | 2022-11-13 20:12:39 +0300 |
---|---|---|
committer | Egor Vorontsov | 2022-11-13 20:12:39 +0300 |
commit | 56bf0e6c760796816fc42b08aa2fd7ec5c3b8366 (patch) | |
tree | 5be7d4c743f761b62962ecb4e4f2fe58f3367ef9 /PKGBUILD | |
download | aur-ymaudio-git.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..765872e65c1c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Egor Vorontsov <sdoregor@sdore.me> + +_pkgbase=ymaudio +_gitname=YMAudio +pkgname=${_pkgbase}-git +pkgver=r18.082e86e +pkgrel=1 +pkgdesc="Yandex.Music CLI Audio Player" +arch=('any') +url="https://apps.sdore.me/${_gitname}" +license=('LGPL3') +depends=('python-yandex-music-api' 'python-vlc' 'python-scurses' 'python-sutils' 'python-scimg') +optdepends=('python-notify2: for playback notifications when MPRIS is not available' + 'python-gobject: for MPRIS support' + 'dbus-python: for MPRIS support') +source=("git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_gitname}" + + printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}" + + touch 'pyproject.toml' + + python -m build --wheel --no-isolation +} + +package() { + cd "${srcdir}" + + python -m installer --destdir="${pkgdir}" "dist/${_gitname}-"*.whl + + cd "${_gitname}" + + install -Dm755 'YMAudio' -t "${pkgdir}/usr/bin/" + install -Dm644 'YMAudio.desktop' -t "${pkgdir}/usr/share/applications/" +} |