blob: 8244f33065527820b6d76fd8deaf5a600ba66a86 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# 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 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/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"
|