summaryrefslogtreecommitdiff
path: root/user/luarocks/APKBUILD
blob: 42695a0ef14ea847293ba4061f81f99c7269e527 (plain) (blame)
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
# Contributor: Kiyoshi Aman <adelie@aerdan.vulpine.house>
# Maintainer: Kiyoshi Aman <adelie@aerdan.vulpine.house>
pkgname=luarocks
pkgver=3.2.1
pkgrel=0
pkgdesc="Package manager for Lua software"
url="https://luarocks.org/"
arch="noarch"
options="!check"  # No test suite
license="MIT"
depends="lua5.3"
makedepends="lua5.3-dev"
source="https://luarocks.github.io/luarocks/releases/luarocks-$pkgver.tar.gz"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--lua-version=5.3 \
		--rocks-tree=/usr/share/lua/5.3
	make build
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="9abf2c5477b9ab8e3caf485dd10fc154435b41efc13c7709f36a9182ccbd98d022738627f76901977a9b7c42ae61e5f139e78070d469094a7571910afbb747ff  luarocks-3.2.1.tar.gz"