summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO28
-rw-r--r--PKGBUILD53
2 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..58af883e618
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+# Generated by mksrcinfo v8
+# Sun Jan 27 20:58:44 UTC 2019
+pkgbase = lua-socket-git
+ pkgdesc = Network support for the Lua language
+ pkgver = 646.288219f
+ pkgrel = 1
+ url = http://www.impa.br/~diego/software/luasocket
+ arch = i686
+ arch = x86_64
+ license = MIT
+ source = lua-socket-git::git+https://github.com/diegonehab/luasocket.git#branch=master
+ md5sums = SKIP
+
+pkgname = lua-socket-git
+ depends = lua
+ depends = luarocks
+ provides = lua-socket
+
+pkgname = lua51-socket-git
+ depends = lua51
+ depends = luarocks5.1
+ provides = lua51-socket
+
+pkgname = lua52-socket-git
+ depends = lua52
+ depends = luarocks5.2
+ provides = lua52-socket
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c1a4ea4b0c8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Stephen Smith <stephen304@gmail.com>
+
+pkgname=('lua-socket-git' 'lua51-socket-git' 'lua52-socket-git')
+pkgbase=lua-socket-git
+pkgver=646.288219f
+pkgrel=1
+pkgdesc="Network support for the Lua language"
+arch=('i686' 'x86_64')
+url="http://www.impa.br/~diego/software/luasocket"
+license=('MIT')
+source=("$pkgbase::git+https://github.com/diegonehab/luasocket.git#branch=master")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir"/"$pkgbase"
+ echo $(git rev-list --count master).$(git rev-parse --short master)
+}
+
+package_lua51-socket-git() {
+ depends=('lua51' 'luarocks5.1')
+ provides=('lua51-socket')
+
+ mkdir -p 5.1
+ cd "$pkgbase"
+ luarocks-5.1 make --pack-binary-rock --deps-mode=none luasocket-scm-0.rockspec
+ mv *.rock ../5.1/
+ luarocks-5.1 install --tree="$pkgdir/usr/" --deps-mode=none ../5.1/*.rock
+ find "$pkgdir/usr" -name manifest -delete
+}
+
+package_lua52-socket-git() {
+ depends=('lua52' 'luarocks5.2')
+ provides=('lua52-socket')
+
+ mkdir -p 5.2
+ cd "$pkgbase"
+ luarocks-5.2 make --pack-binary-rock --deps-mode=none luasocket-scm-0.rockspec
+ mv *.rock ../5.2/
+ luarocks-5.2 install --tree="$pkgdir/usr/" --deps-mode=none ../5.2/*.rock
+ find "$pkgdir/usr" -name manifest -delete
+}
+
+package_lua-socket-git() {
+ depends=('lua' 'luarocks')
+ provides=('lua-socket')
+
+ mkdir -p 5.3
+ cd "$pkgbase"
+ luarocks-5.3 make --pack-binary-rock --deps-mode=none luasocket-scm-0.rockspec
+ mv *.rock ../5.3/
+ luarocks install --tree="$pkgdir/usr/" --deps-mode=none ../5.3/*.rock
+ find "$pkgdir/usr" -name manifest -delete
+}