diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 9 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = leagueoflegends-git pkgdesc = League of Legends helper script - pkgver = v0.10.12.r0.gc44d767 + pkgver = 0.10.12.r0.gc44d767 pkgrel = 1 url = https://github.com/kyechou/leagueoflegends arch = any @@ -14,7 +14,7 @@ pkgbase = leagueoflegends-git depends = lib32-libpulse depends = wget conflicts = leagueoflegends - source = leagueoflegends-git::git+https://github.com/kyechou/leagueoflegends.git + source = leagueoflegends-git::git+https://github.com/kyechou/leagueoflegends md5sums = SKIP pkgname = leagueoflegends-git @@ -2,7 +2,7 @@ # Contributor: Timofey Titovets <nefelim4ag@gmail.com> pkgname=leagueoflegends-git -pkgver=v0.10.12.r0.gc44d767 +pkgver=0.10.12.r0.gc44d767 pkgrel=1 pkgdesc="League of Legends helper script" arch=('any') @@ -11,12 +11,16 @@ license=('GPL3') depends=('wine-lol' 'winetricks' 'bash' 'lib32-gnutls' 'lib32-libldap' 'lib32-openal' 'lib32-libpulse' 'wget') conflicts=('leagueoflegends') -source=("$pkgname"::'git+https://github.com/kyechou/leagueoflegends.git') +source=("$pkgname"::'git+https://github.com/kyechou/leagueoflegends') md5sums=('SKIP') pkgver() { cd "$srcdir/$pkgname" - git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + if git describe --long --tags >/dev/null 2>&1; then + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' + else + printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)" + fi } package() { |