From 37c91a93aa55763b507e5c0de9c1eb8b09ded568 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Tue, 9 Oct 2018 08:23:06 -0500 Subject: user/lua-sec: new package for prosody --- user/lua-sec/APKBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 user/lua-sec/APKBUILD diff --git a/user/lua-sec/APKBUILD b/user/lua-sec/APKBUILD new file mode 100644 index 000000000..6732105ef --- /dev/null +++ b/user/lua-sec/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Natanael Copa +# Maintainer: Natanael Copa +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" -- cgit v1.2.3-70-g09d2