blob: ce04a55d91b385f24e6629eafa951e65e343a4f5 (
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
33
34
35
36
|
# shellcheck shell=bash disable=SC2034,SC2154
# Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
_pkgname=dottify
pkgname=(lua{,51,52,53}-"$_pkgname")
pkgver=0.0.1
pkgrel=1
pkgdesc="generate a graphviz graph from a lua table structure"
arch=(any)
url=https://git.ignore.pl/lua-dottify
license=(GPL3)
makedepends=(luarocks)
source=(https://luarocks.org/manifests/Freed-Wu/dottify-scm-1.rockspec)
sha256sums=('48ffe5686f81d7083026f30b9ed94cfe63b2dec1b92d6c6a1c8f4615f7d7aa4c')
_lua_version=5.4
_package() {
luarocks install --lua-version=$1 --tree="$pkgdir/usr/" --deps-mode=none ./*.rockspec
rm $pkgdir/usr/lib/luarocks/rocks-*/manifest
}
package_lua51-dottify() {
_package 5.1
}
package_lua52-dottify() {
_package 5.2
}
package_lua53-dottify() {
_package 5.3
}
package_lua-dottify() {
_package $_lua_version
}
# ex: nowrap
|