summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime “pep” Buquet2019-09-12 21:49:55 +0200
committerMaxime “pep” Buquet2019-09-12 21:49:55 +0200
commitabc20acd5dcd866f119ce0b192fefa4681c97c79 (patch)
tree2fdacd899812266303da0acd2416748ad8d6094b
downloadaur-abc20acd5dcd866f119ce0b192fefa4681c97c79.tar.gz
Initial commit
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD45
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c86dc8e9d89
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = scansion-hg
+ pkgdesc = Automated XMPP testing tool
+ pkgver = r168+.873f6fec12f2+
+ pkgrel = 1
+ url = https://code.matthewwild.co.uk/scansion/
+ arch = any
+ license = TODO
+ depends = lua52
+ depends = lua52-cjson
+ depends = lua52-expat
+ depends = lua52-sec
+ depends = lua52-socket
+ depends = lua52-filesystem
+ source = hg+https://code.matthewwild.co.uk/scansion/
+ md5sums = SKIP
+
+pkgname = scansion-hg
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..528cf09572f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
+
+_lua_version=5.2
+_lua_version_nodot=${_lua_version//./}
+pkgname=scansion-hg
+pkgver=r168+.873f6fec12f2+
+pkgrel=1
+pkgdesc="Automated XMPP testing tool"
+arch=('any')
+url="https://code.matthewwild.co.uk/scansion/"
+license=('TODO')
+depends=("lua${_lua_version_nodot}"
+ "lua${_lua_version_nodot}-cjson"
+ "lua${_lua_version_nodot}-expat"
+ "lua${_lua_version_nodot}-sec"
+ "lua${_lua_version_nodot}-socket"
+ "lua${_lua_version_nodot}-filesystem")
+source=('hg+https://code.matthewwild.co.uk/scansion/')
+md5sums=('SKIP')
+
+pkgver() {
+ cd scansion
+ printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
+}
+
+prepare() {
+ cd scansion
+ sed -i -e 's,a:write("#!/usr/bin/env lua,a:write("#!/usr/bin/env lua5.2,' buildscripts/squish
+}
+
+build() {
+ cd scansion
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd scansion
+ install -Dm755 build/scansion "$pkgdir"/usr/bin/scansion
+
+ install -dm755 "$pkgdir"/usr/share/scansion
+ install -Dm644 scripts/* "$pkgdir"/usr/share/scansion/
+}
+
+# vim:set ts=2 sw=2 et: