diff options
author | Christian Hesse | 2015-06-28 22:35:27 +0200 |
---|---|---|
committer | Christian Hesse | 2015-06-28 22:35:27 +0200 |
commit | fc14fdd5ff27e5a545dc6d007308b3ecdf383852 (patch) | |
tree | 483278003de79114d2c9f769c4a6dd1b56223894 | |
download | aur-fc14fdd5ff27e5a545dc6d007308b3ecdf383852.tar.gz |
initial import of xfmpc-git 0.2.2.r93.gde0a987-1
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..be4469c53f0c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = xfmpc-git + pkgdesc = A graphical GTK+ MPD client focusing on low footprint - git checkout + pkgver = 0.2.2.r93.gde0a987 + pkgrel = 1 + url = http://goodies.xfce.org/projects/applications/xfmpc/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = intltool + makedepends = vala + depends = libxfce4ui + depends = libmpd + provides = xfmpc + conflicts = xfmpc + source = git://git.xfce.org/apps/xfmpc + sha256sums = SKIP + +pkgname = xfmpc-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a9d3c4b419a8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Christian Hesse <mail@eworm.de> + +pkgname=xfmpc-git +pkgver=0.2.2.r93.gde0a987 +pkgrel=1 +pkgdesc="A graphical GTK+ MPD client focusing on low footprint - git checkout" +arch=('i686' 'x86_64') +url="http://goodies.xfce.org/projects/applications/xfmpc/" +license=('GPL') +provides=('xfmpc') +conflicts=('xfmpc') +depends=('libxfce4ui' 'libmpd') +makedepends=('intltool' 'vala') +source=('git://git.xfce.org/apps/xfmpc') +sha256sums=('SKIP') + +pkgver() { + cd xfmpc/ + + 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 xfmpc/ + + sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in.in + sed -i 's/CHARSET/UTF-8/' po/sl.po + sed -i 's/Timeout.add/Gtk.Timeout.add/' src/main-window.vala + ./autogen.sh --prefix=/usr + # building fails with parallel processes... so we unset MAKEFLAGS and do + # not use -j5... + MAKEFLAGS="" make +} + +package() { + cd xfmpc/ + + make DESTDIR="${pkgdir}" install +} + |