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


                                            
                                  


                                    
                                                                                         
         


                                                                        






                                                       
                                                                                                                                                                
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: 
pkgname=lua-sec
pkgver=0.9
pkgrel=0
pkgdesc="TLS/SSL Support for Lua"
url="https://github.com/brunoos/luasec/wiki"
arch="all"
options="!check"  # No test suite.
license="MIT"
depends="lua5.3 lua-socket"
makedepends="lua5.3-dev openssl-dev"
subpackages="$pkgname-doc"
source="luasec-$pkgver.tar.gz::https://github.com/brunoos/luasec/archive/v$pkgver.tar.gz"
builddir="$srcdir/luasec-$pkgver"

build() {
	make linux INC_PATH="$(pkg-config --cflags lua)" LD="${CC:-gcc}"
}

package() {
	make \
		LUAPATH="$pkgdir"/usr/share/lua/5.3 \
		LUACPATH="$pkgdir"/usr/lib/lua/5.3 \
		install
	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	cp -r samples "$pkgdir"/usr/share/doc/$pkgname/
}

sha512sums="ea601016328232ca0ff12be72897eeedac88a78834a63e1c36d2828a3187039665a2c60597b5af1fa6917b6fe87cd292fbcdfabcd67bab968f587e038d52a933  luasec-0.9.tar.gz"