From 31d147b20c67d95a9e306d0749200bf964ac42af Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 01:30:24 +0300 Subject: Use actual files instead of submodules --- polybar-spotify-git | 1 - polybar-spotify-git/.SRCINFO | 14 ++++++++++++++ polybar-spotify-git/PKGBUILD | 29 +++++++++++++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) delete mode 160000 polybar-spotify-git create mode 100644 polybar-spotify-git/.SRCINFO create mode 100644 polybar-spotify-git/PKGBUILD (limited to 'polybar-spotify-git') diff --git a/polybar-spotify-git b/polybar-spotify-git deleted file mode 160000 index c82e807..0000000 --- a/polybar-spotify-git +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c82e8079624d1c42adeb008be9ff57ab87efbd3a diff --git a/polybar-spotify-git/.SRCINFO b/polybar-spotify-git/.SRCINFO new file mode 100644 index 0000000..1b2bed7 --- /dev/null +++ b/polybar-spotify-git/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = polybar-spotify-git + pkgdesc = Spotify artist and song module for Polybar + pkgver = r42.9bc2997 + pkgrel = 1 + url = https://github.com/Jvanrhijn/polybar-spotify + arch = any + license = MIT + makedepends = git + depends = python + depends = python-dbus + source = polybar-spotify::git+https://github.com/Jvanrhijn/polybar-spotify.git + sha256sums = SKIP + +pkgname = polybar-spotify-git diff --git a/polybar-spotify-git/PKGBUILD b/polybar-spotify-git/PKGBUILD new file mode 100644 index 0000000..73e8b30 --- /dev/null +++ b/polybar-spotify-git/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Yigit Sever +# Contributor: timescam + +_pkgname=polybar-spotify +pkgname=${_pkgname}-git +pkgver=r42.9bc2997 +pkgrel=1 +pkgdesc='Spotify artist and song module for Polybar' +arch=(any) +url=https://github.com/Jvanrhijn/${_pkgname} +license=('MIT') +depends=('python' 'python-dbus') +makedepends=(git) +source=("${_pkgname}::git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + cd ${_pkgname} + set -o pipefail + git describe --long 2> /dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd ${_pkgname} + install -Dm644 README.md "${pkgdir}"/usr/share/doc/${_pkgname}/README.md + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${_pkgname}/LICENSE + install -Dm755 spotify_status.py "${pkgdir}"/usr/share/polybar/scripts/spotify_status.py +} -- cgit v1.2.3-70-g09d2