aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fennel/APKBUILD
blob: e0cccfacb17d724749c10116001ec2098c3dd186 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=fennel
pkgver=0.3.1
pkgrel=1
pkgdesc="A Lua Lisp Language"
url="https://fennel-lang.org"
arch="all !s390x" #did not build on s390x CI
license="MIT"
source="fennel-$pkgver.tar.gz::https://github.com/bakpakin/Fennel/archive/$pkgver.tar.gz
		lua5.3-fennel.patch"
_lua_version=5.3
depends="lua$_lua_version"
builddir="$srcdir"/Fennel-$pkgver

check() {
	make test LUA="lua$_lua_version"
}

package() {
	install -Dm644 "fennel.lua" "fennelview.fnl" \
			-t "$pkgdir/usr/lib/lua$_lua_version/"

	install -Dm644 "fennel.lua" \
			-t "$pkgdir/usr/bin/"

	install -Dm755 "fennel" \
			"$pkgdir/usr/bin/fennel"
}

sha512sums="bcc34429c616f4bad471a4ba6a830d58254582a82384d71a8bee81b72bb531d0322b5160d7e741cdff0bf8a421f0630b967ca45ae6594f06877b3029bc063385  fennel-0.3.1.tar.gz
c9f45147b5eae695108557d19714c7013409451f68e8a55cc92340d80d222f2d7b7069d9b25bc32111580f0dd432b17bb349b40f02f28c3c7ebb89494c2cf788  lua5.3-fennel.patch"