-
-
Save tonylambiris/8190103bf3fc9d3174d728f6745ad821 to your computer and use it in GitHub Desktop.
Updated PKGBUILD for gnome-shell-extension-mediaplayer-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: XZS <d dot f dot fischer at web dot de> | |
# Contributor: Morris Jobke <hey at morrisjobke dot de> | |
# Contributor: alucryd <alucryd at gmail dot com> | |
# This PKGBUILD is maintained on GitHub <https://github.com/dffischer/gnome-shell-extensions>. | |
# You may find it convenient to file issues and pull requests there. | |
pkgname=gnome-shell-extension-mediaplayer-git | |
pkgver=3.2.r0.g5c06d5d | |
pkgrel=1 | |
pkgdesc='A mediaplayer indicator for the Gnome Shell' | |
arch=('any') | |
url='https://github.com/eonpatapon/gnome-shell-extensions-mediaplayer' | |
license=('GPL2') | |
makedepends=('gnome-common' 'intltool' 'meson' 'ninja') | |
optdepends=('mpdris2-git: MPD support') | |
install=gschemas.install | |
makedepends+=('git') | |
source+=("${_gitname:=${pkgname%-git}}::${_giturl:-git+$url}") | |
provides+=("$_gitname=$pkgver") | |
conflicts+=("$_gitname") | |
sha256sums=('SKIP') | |
pkgver() { | |
cd ${_gitname:-$pkgname} | |
git describe --long --tags 2>/dev/null | sed 's/[^[:digit:]]*\(.\+\)-\([[:digit:]]\+\)-g\([[:xdigit:]]\{7\}\)/\1.r\2.g\3/;t;q1' | |
[ ${PIPESTATUS[0]} -ne 0 ] && \ | |
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
build() { | |
cd "$_gitname" | |
meson builddir --prefix="${pkgdir}/usr" || : | |
} | |
package() { | |
cd "$_gitname" | |
ninja -C builddir install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment