diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 30 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..656e2de914e6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Sat Jan 26 02:09:08 UTC 2019 +pkgbase = lua-cgilua-git + pkgdesc = CGILua is a tool for creating dynamic HTML pages and manipulating input data from Web forms. + pkgver = 527.cd1a504 + pkgrel = 1 + url = http://keplerproject.github.com/cgilua + arch = i686 + arch = x86_64 + license = MIT + makedepends = luarocks + depends = lua + depends = lua-luafilesystem + source = lua-cgilua-git::git+https://github.com/keplerproject/cgilua.git#branch=master + md5sums = SKIP + +pkgname = lua-cgilua-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f3f8bc5c0e3f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Stephen Smith <stephen304@gmail.com> + +pkgname=lua-cgilua-git +_rockname=cgilua +pkgver=527.cd1a504 +pkgrel=1 +pkgdesc="CGILua is a tool for creating dynamic HTML pages and manipulating input data from Web forms." +arch=('i686' 'x86_64') +url="http://keplerproject.github.com/cgilua" +license=('MIT') +depends=('lua' 'lua-luafilesystem') +makedepends=('luarocks') +conflicts=() +source=("$pkgname::git+https://github.com/keplerproject/cgilua.git#branch=master") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir"/"$pkgname" + echo $(git rev-list --count master).$(git rev-parse --short master) +} + +build() { + cd "$pkgname" + luarocks make --pack-binary-rock --deps-mode=none rockspec/${_rockname}-6.0.0-0.rockspec # The CVS rockspecs seem broken +} + +package() { + luarocks install --tree="$pkgdir/usr/" --deps-mode=none "$pkgname"/*.rock + find "$pkgdir/usr" -name manifest -delete +} |