summaryrefslogblamecommitdiff
path: root/user/luarocks/APKBUILD
blob: fe0a752901775c194b0b681ac6b3878fdfd663fc (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                           
                
            

                                          
                           
             
                                 
             



                                                                            

         



                                   
                                       



                  
                                      
                                                                                

 

                                                                                                                                                                   
# Contributor: Síle Ekaterin Liszka <sheila@vulpine.house>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=luarocks
pkgver=3.9.2
pkgrel=0
pkgdesc="Package manager for Lua software"
url="https://luarocks.org/"
arch="noarch"
options="!check"  # No test suite
license="MIT"
depends="lua5.3-dev"
makedepends=""
source="https://luarocks.github.io/luarocks/releases/luarocks-$pkgver.tar.gz
	config.lua"

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

package() {
	make DESTDIR="$pkgdir" install
	install -D -m 644 "$srcdir"/config.lua "$pkgdir"/etc/$pkgname/config.lua
}

sha512sums="7e93164bdcf35338e993822931a8e59957ab69c6e23236a7a075649c2f7cd173305c4ca6e9d115fc5e282cb76c21754d7adac92b21885006e5ee3bc06a9d0059  luarocks-3.9.2.tar.gz
5845d5643c3eeb6d4af6d919a588c5253c91e6a0b278116b4cd855437fc48ac64970fd3ef758c135bc0536ddc1aaa16b01c50e33c864f59aeef1ccced0d01d82  config.lua"