diff options
author | Jerome M. BERGER | 2015-08-30 17:39:31 +0200 |
---|---|---|
committer | Jerome M. BERGER | 2015-08-30 17:39:31 +0200 |
commit | 0c0ba0fb7e8d4bd9f317a47896ccbc2d721ce2aa (patch) | |
tree | 5a299d12aac2f6d83c38c0b1c804662e5686eb99 /PKGBUILD | |
parent | 79c59a8e8211b39454dd2471b931b4bcc1ad6abf (diff) | |
download | aur-audacious-imms-git.tar.gz |
Updated to the new official github repository and version scheme.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -1,7 +1,7 @@ # Maintainer: Jerome M. Berger <jeberger@free.fr> pkgname=audacious-imms-git -pkgver=r249.4a395da +pkgver=3.1.16.4227360 pkgrel=1 pkgdesc="An intelligent playlist plug-in for XMMS that tracks your listening patterns and dynamically adapts to your taste." arch=(i686 x86_64) @@ -10,17 +10,29 @@ url="https://sites.google.com/a/luminal.org/imms/" depends=('audacious' 'pcre' 'sqlite3' 'taglib' 'glib2' 'sox' 'torch') replaces=('imms') conflicts=('audacious-imms') -source=(git+https://github.com/jlindgren90/imms.git) +source=(git+https://github.com/martingkelly/imms.git) md5sums=(SKIP) pkgver() { cd "${srcdir}/imms" ( set -o pipefail - git describe --long 2>/dev/null | sed -r 's/([^-]*-g)/r\1/;s/-/./g' || - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + LATEST_TAG=$(git tag | grep -Exe 'imms-[0-9]+(\.[0-9]+)?' | sort -rn | head -1) + COMMITS_SINCE=$(git rev-list ${LATEST_TAG}..HEAD --count) + LATEST_VERSION=${LATEST_TAG#imms-} + if [ $COMMITS_SINCE == 0 ]; then + echo $LATEST_VERSION + else + echo ${LATEST_VERSION}.${COMMITS_SINCE}.$(git rev-parse --short HEAD) + fi ) } +prepare() { + cd $srcdir/imms/imms + + echo "m4_define([GIT_VERSION], [$pkgver])" > gitversion.m4 +} + build() { cd $srcdir/imms/imms |