diff options
author | Kiyoshi Aman <kiyoshi.aman+apkfission@gmail.com> | 2018-10-09 08:23:06 -0500 |
---|---|---|
committer | Kiyoshi Aman <kiyoshi.aman+apkfission@gmail.com> | 2018-10-09 21:33:55 -0500 |
commit | 37c91a93aa55763b507e5c0de9c1eb8b09ded568 (patch) | |
tree | a469db4bbf7cddd1e4087d810fe538412576b34c | |
parent | f5df416fd9b9d428aaf8c997e50b89c2710a010f (diff) | |
download | packages-37c91a93aa55763b507e5c0de9c1eb8b09ded568.tar.gz packages-37c91a93aa55763b507e5c0de9c1eb8b09ded568.tar.bz2 packages-37c91a93aa55763b507e5c0de9c1eb8b09ded568.tar.xz packages-37c91a93aa55763b507e5c0de9c1eb8b09ded568.zip |
user/lua-sec: new package for prosody
-rw-r--r-- | user/lua-sec/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
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 <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +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" |