1 # Maintainer: Caleb Maclennan <caleb@alerque.com>
4 _rockname=${pkgbase#lua-}
5 _project=$_rockname.lua
6 pkgname=("$pkgbase" "lua51-$_rockname" "lua52-$_rockname" "lua53-$_rockname")
8 _rockrel=1 # upstream rockrel 2 is only needed for installing with Luarocks 2.x
10 pkgdesc='The cassowary constraint solver'
12 url="https://github.com/sile-typesetter/$_project"
21 _archive="$_project-$pkgver"
22 source=("$url/archive/v$pkgver/$_archive.tar.gz")
23 sha256sums=('20fe7309f59004ce59e6c65d69ed9993de907267fd0314fc224f40e017d59798')
32 depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
33 luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
34 make --deps-mode=none --no-manifest "rockspecs/$_rockname-$pkgver-$_rockrel.rockspec"
35 install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
38 package_lua-cassowary() {
42 package_lua51-cassowary() {
46 package_lua52-cassowary() {
50 package_lua53-cassowary() {