summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill sinatra <wpsinatra@gmail.com>2019-12-28 08:25:44 -0500
committerRasmus Thomsen <oss@cogitri.dev>2019-12-28 18:42:17 +0100
commit190e2e3e5c47531a6371450c4a29e7743967a5fb (patch)
tree8e1c39302a9df4868e4a7868e1a72a437babee73
parente468c7e86e939494bfeaebf3857f0a6387187d65 (diff)
downloadaports-190e2e3e5c47531a6371450c4a29e7743967a5fb.zip
testing/fennel: build fennelview in package
building fennelview in package allows pretty printing of tables in the fennel repl, without it lua tables are printed as pointers only.
-rwxr-xr-xtesting/fennel/APKBUILD10
1 files changed, 7 insertions, 3 deletions
diff --git a/testing/fennel/APKBUILD b/testing/fennel/APKBUILD
index e0cccfacb17..1ee9ad8acb5 100755
--- a/testing/fennel/APKBUILD
+++ b/testing/fennel/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=fennel
pkgver=0.3.1
-pkgrel=1
+pkgrel=2
pkgdesc="A Lua Lisp Language"
url="https://fennel-lang.org"
arch="all !s390x" #did not build on s390x CI
@@ -17,9 +17,13 @@ check() {
make test LUA="lua$_lua_version"
}
+build() {
+ ./fennel --compile fennelview.fnl > fennelview.lua
+}
+
package() {
- install -Dm644 "fennel.lua" "fennelview.fnl" \
- -t "$pkgdir/usr/lib/lua$_lua_version/"
+ install -Dm644 "fennelview.lua" \
+ -t "$pkgdir/usr/share/lua/$_lua_version/"
install -Dm644 "fennel.lua" \
-t "$pkgdir/usr/bin/"