summaryrefslogblamecommitdiff
path: root/user/lua-socket/APKBUILD
blob: a9c0f7af09a0b6ed250a6ae7fdb11bd65f0cfc44 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                  
                                                          
                  

                  
        


                
                                    
                                               

             



                                                                                                             

         
                                              


         

                                                  



                                                                        
                                                                       

 
                                                                                                                                                                      
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Síle Ekaterin Liszka <sheila@vulpine.house>
pkgname=lua-socket
_pkgname=luasocket
pkgver=3.1.0
pkgrel=0
_luaver=5.3
_socketver=3.0.0
_mimever=1.0.3
pkgdesc="Networking library for Lua"
url="https://lunarmodules.github.io/luasocket/"
arch="all"
license="MIT"
depends="lua$_luaver"
makedepends="lua$_luaver-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/lunarmodules/luasocket/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	make linux prefix=/usr LUAV="$_luaver"
}

check() {
	cp src/socket-$_socketver.so src/socket.so
	cp src/mime-$_mimever.so src/mime.so
	LUA_CPATH=./src/?.so LUA_PATH="./src/?.lua;;" lua test/hello.lua
}

package() {
	make prefix=/usr DESTDIR="$pkgdir" LUAV="$_luaver" install-unix
}

sha512sums="1e9e98484740ec6538fe3d2b0dab74d31f052956ecf9ee3b60e229f2d0b13fcc6d4aaf74cd2a3e2ee330333dabb316fe6a43c60baaea26f0cc01069b6aa4519b  lua-socket-3.1.0.tar.gz"