summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 05ceccb05771be9d131e67a5f77403e017eff16f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Ivy Foster <code@escondida.tk>

pkgname=lua-cosmo-git
pkgver=9.02.22.r35.ge774f08
pkgrel=1
pkgdesc='Safe templates for Lua'
arch=(i686 x86_64)
url='http://cosmo.luaforge.net/'
license=(MIT)

depends=(lua lua-lpeg)
makedepends=(luarocks)

provides=(lua-cosmo)
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
}