diff options
author | Christian Hesse | 2015-06-28 21:50:46 +0200 |
---|---|---|
committer | Christian Hesse | 2015-06-28 21:50:46 +0200 |
commit | bd354e7bced50743a451584deb74636adbd53066 (patch) | |
tree | 4bfed8791a4057f1690e3f2854226cc5f11d1074 | |
download | aur-bd354e7bced50743a451584deb74636adbd53066.tar.gz |
initial import of mpd-notification-git 0.5.2.r6.g53787fc-1
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3e64dfe3d80e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = mpd-notification-git + pkgdesc = Notify about tracks played by mpd - git checkout + pkgver = 0.5.2.r6.g53787fc + pkgrel = 1 + url = https://github.com/eworm-de/mpd-notification + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + makedepends = markdown + depends = ffmpeg + depends = libnotify + depends = libmpdclient + depends = gnome-icon-theme + source = git://github.com/eworm-de/mpd-notification.git + sha256sums = SKIP + +pkgname = mpd-notification-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3a899ecc1605 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Christian Hesse <mail@eworm.de> + +pkgname=mpd-notification-git +pkgver=0.5.2.r6.g53787fc +pkgrel=1 +pkgdesc='Notify about tracks played by mpd - git checkout' +arch=('i686' 'x86_64') +url='https://github.com/eworm-de/mpd-notification' +depends=('ffmpeg' 'libnotify' 'libmpdclient' 'gnome-icon-theme') +makedepends=('git' 'markdown') +license=('GPL') +source=('git://github.com/eworm-de/mpd-notification.git') + +pkgver() { + cd mpd-notification/ + + if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then + echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")" + else + echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")" + fi +} + +build() { + cd mpd-notification/ + + make +} + +package() { + cd mpd-notification/ + + make DESTDIR="${pkgdir}" install +} + +sha256sums=('SKIP') |