summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvy Foster2017-10-26 21:05:39 -0500
committerIvy Foster2017-10-26 21:05:39 -0500
commit326b5353dc06cea4b13510b391da2d477fdecb89 (patch)
tree0aa136a065d711672fd0de6277f9c0f86d6a8035
parent86570a006381f3c00815e3a39ec808cf45922fd3 (diff)
downloadaur-lua-cosmo-git.tar.gz
Actually set pkgver from git
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 8 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 94479cc42e2..6998e484fc1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = lua-cosmo-git
pkgdesc = Safe templates for Lua
- pkgver = 16.06.04
+ pkgver = 9.02.22.r35.ge774f08
pkgrel = 1
url = http://cosmo.luaforge.net/
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index cde3f65011a..05ceccb0577 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: Ivy Foster <code@escondida.tk>
pkgname=lua-cosmo-git
-pkgver=16.06.04
+pkgver=9.02.22.r35.ge774f08
pkgrel=1
pkgdesc='Safe templates for Lua'
arch=(i686 x86_64)
@@ -17,7 +17,13 @@ conflicts=(lua-cosmo)
source=('git+https://github.com/mascarenhas/cosmo.git')
md5sums=(SKIP)
+pkgver() {
+ cd cosmo
+ git describe | sed 's,v,,; s,-\(.*\)-,.r\1.,'
+}
+
package() {
+ cd cosmo
luarocks --tree="$pkgdir/usr" install --deps-mode=none cosmo
find "$pkgdir/usr" -name manifest -delete
}