summaryrefslogblamecommitdiff
path: root/user/lua-sec/APKBUILD
blob: 27ea13b48f608751f54ab35ea7b4f7605482e5e2 (plain) (tree)
1
2
3
4
                                                    
              
               
          


























                                                                                               
                                                                                                                                                                
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: 
pkgname=lua-sec
pkgver=0.8
pkgrel=0
pkgdesc="TLS/SSL Support for Lua"
url="https://github.com/brunoos/luasec/wiki"
arch="all"
options="!check" # no tests
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/luasec-$pkgver.tar.gz"
builddir="$srcdir/luasec-luasec-$pkgver"

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

package() {
	cd "$builddir"
	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="eebacc8bd3a3ba38a99ef885f61dcee662978d31332d367f8a810c25c30e009ed1fabe2b54c5f48fb584549be52a31e03f36ed59865350de38c5ae926025ca61  luasec-0.8.tar.gz"