aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2020-07-03 16:02:41 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2020-07-03 16:03:10 +0300
commitc54ea0185018ba42da363e81bc606896a7e966d8 (patch)
tree485db91ca0edebbf90896e8535b33b23668873a8
parentf76bb2d8c7005a7d84828b031a2f52db22b5dcae (diff)
downloadaports-c54ea0185018ba42da363e81bc606896a7e966d8.tar.gz
aports-c54ea0185018ba42da363e81bc606896a7e966d8.tar.bz2
aports-c54ea0185018ba42da363e81bc606896a7e966d8.tar.xz
testing/lua-schema: new package
-rw-r--r--testing/lua-schema/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/lua-schema/APKBUILD b/testing/lua-schema/APKBUILD
new file mode 100644
index 0000000000..007e0aae66
--- /dev/null
+++ b/testing/lua-schema/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
+pkgname=lua-schema
+_rockname=$pkgname
+_rockver=scm-1
+_commit=e3e504df922da6175dbb055b091710ae46a44a14
+pkgver=0_git20170304
+pkgrel=0
+pkgdesc="A simple package to check LUA-data against schemata"
+url="https://github.com/sschoener/lua-schema"
+arch="noarch"
+license="MIT"
+provides=
+source="$url/archive/$_commit.zip"
+builddir="$srcdir/$pkgname-$_commit"
+options="!check"
+
+_luaversions="5.2 5.3"
+for _v in $_luaversions; do
+ provides="$provides lua$_v-${pkgname#lua-}=$pkgver-r$pkgrel"
+done
+
+package() {
+ local rockdir="$pkgdir/usr/lib/luarocks/rocks-common/$_rockname/$_rockver"
+
+ install -m 644 -D "$builddir"/schema.lua \
+ "$pkgdir"/usr/share/lua/common/schema.lua
+
+ mkdir -p "$rockdir"
+ echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
+}
+
+sha512sums="045c7c400aa69238109f21d79c6b3420081330c06189f8ba23efdbcad09680c7f017d33418dd61a5a4cd35953ecbeef511a62cdd850c65750d0b0a902e6009a4 e3e504df922da6175dbb055b091710ae46a44a14.zip"