Skip to content

Instantly share code, notes, and snippets.

@tonylambiris tonylambiris/PKGBUILD Secret
Last active Sep 15, 2017

Embed
What would you like to do?
Updated PKGBUILD for gnome-shell-extension-mediaplayer-git
# 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
You can’t perform that action at this time.