diff options
author | Doug Newgard | 2014-03-23 11:36:26 -0500 |
---|---|---|
committer | Doug Newgard | 2014-03-23 11:36:26 -0500 |
commit | 4d7bdab9a92efc021baebe2fdcac08e5fc0ea7af (patch) | |
tree | eaab31bac029ff70d91d9ce3547bf5e5e9e5a496 | |
parent | 9a6f14baa1bfcf52e92ee4030ec15c60c815321b (diff) | |
download | aur-4d7bdab9a92efc021baebe2fdcac08e5fc0ea7af.tar.gz |
Switch to github repo and fix pkgver
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 12 insertions, 10 deletions
@@ -1,8 +1,8 @@ pkgbase = lightmediascanner-git pkgdesc = Lightweight library to scan media - Development version - pkgver = 0.4.5.r114.g1f7b0f2 + pkgver = 0.4.5.99.r357.b05729d pkgrel = 1 - url = http://lms.garage.maemo.org/ + url = https://github.com/profusion/lightmediascanner arch = i686 arch = x86_64 license = LGPL @@ -13,9 +13,9 @@ pkgbase = lightmediascanner-git depends = flac depends = libtheora depends = glib2 - provides = lightmediascanner=0.4.5.r114.g1f7b0f2 + provides = lightmediascanner=0.4.5.99.r357.b05729d conflicts = lightmediascanner - source = git://git.profusion.mobi/lightmediascanner.git + source = git://github.com/profusion/lightmediascanner.git sha256sums = SKIP pkgname = lightmediascanner-git @@ -1,25 +1,27 @@ # Maintainer: Doug Newgard <scimmia22 at outlook dot com> # Contributor: furester <furester at gmail.com> -pkgname=lightmediascanner-git -_pkgname=${pkgname%-*} -pkgver=0.4.5.r114.g1f7b0f2 +_pkgname=lightmediascanner +pkgname=$_pkgname-git +pkgver=0.4.5.99.r357.b05729d pkgrel=1 pkgdesc="Lightweight library to scan media - Development version" arch=('i686' 'x86_64') -url="http://lms.garage.maemo.org/" +url="https://github.com/profusion/lightmediascanner" license=('LGPL') depends=('sqlite3' 'libvorbis' 'libmp4v2' 'flac' 'libtheora' 'glib2') makedepends=('git') provides=("$_pkgname=$pkgver") conflicts=("$_pkgname") -source=("git://git.profusion.mobi/$_pkgname.git") +source=("git://github.com/profusion/$_pkgname.git") sha256sums=('SKIP') pkgver() { cd "$srcdir/$_pkgname" - git describe --long --tags | sed 's/.*_//;s/-/.r/;s/-/./g' + local v_ver=$(awk -F , '/^AC_INIT/ {gsub(/[\[\] -]/, ""); print $2}' configure.ac) + + printf "$v_ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" } build() { |