summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-07-30 22:26:32 +0300
committerCaleb Maclennan2020-07-30 22:29:05 +0300
commit2441bcd6bfbcd7971eef68abaac9c4ac8689f5fc (patch)
treeb83c908d160083a0ef8d0ac004be9c8991f9f7d1
downloadaur-2441bcd6bfbcd7971eef68abaac9c4ac8689f5fc.tar.gz
Initial upload: lua-cluacov 0.1.1-4
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD36
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..77c345b3e47
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+pkgbase = lua-cluacov
+ pkgdesc = C extensions for LuaCov
+ pkgver = 0.1.1
+ pkgrel = 1
+ url = https://github.com/mpeterv/cluacov
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = lua
+ makedepends = lua52
+ makedepends = lua51
+ makedepends = luarocks
+ depends = lua
+ source = cluacov-0.1.1.tar.gz::https://github.com/mpeterv/cluacov/archive/0.1.1.tar.gz
+ sha256sums = fc46a69fbd9be19e022b05be252d2b2c41a4fb1799ddf41c7d325d260bc77c14
+
+pkgname = lua-cluacov
+ depends = lua
+ depends = lua-luacov
+
+pkgname = lua52-cluacov
+ depends = lua52
+ depends = lua52-luacov
+
+pkgname = lua51-cluacov
+ depends = lua51
+ depends = lua51-luacov
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d75a3ef976d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
+
+_rockname=cluacov
+pkgname=("lua-$_rockname" "lua52-$_rockname" "lua51-$_rockname")
+pkgver=0.1.1
+pkgrel=1
+pkgdesc='C extensions for LuaCov'
+arch=('x86_64' 'i686')
+url="https://github.com/mpeterv/$_rockname"
+license=('MIT')
+depends=('lua')
+_lua_deps=('luacov')
+makedepends=('lua' 'lua52' 'lua51' 'luarocks')
+source=("$_rockname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha256sums=('fc46a69fbd9be19e022b05be252d2b2c41a4fb1799ddf41c7d325d260bc77c14')
+
+_package_helper() {
+ cd "$_rockname-$pkgver"
+ luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
+ make --deps-mode=none --no-manifest
+}
+
+package_lua-cluacov() {
+ depends=('lua' "${_lua_deps[@]/#/lua-}")
+ _package_helper 5.3
+}
+
+package_lua52-cluacov() {
+ depends=('lua52' "${_lua_deps[@]/#/lua52-}")
+ _package_helper 5.2
+}
+
+package_lua51-cluacov() {
+ depends=('lua51' "${_lua_deps[@]/#/lua51-}")
+ _package_helper 5.1
+}