summaryrefslogblamecommitdiff
path: root/user/lua-sec/APKBUILD
blob: e6fe5e684f57c2cbfba140c604d214eba6483a80 (plain) (tree)
1
2
                                                    
              





























                                                                                                                                                                
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: 
pkgname=lua-sec
pkgver=0.7
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="6adf5241aa5a0d92c9dd7fc7f7e426969475548f47979ccc28187471b3bad4132c215de6da1f471d21b05c6558d36309264512c9c4ac70a53d6f6e204cac1358  luasec-0.7.tar.gz"