Commit 38a4a800 authored by Natanael Copa's avatar Natanael Copa
Browse files

testing/lua-sec: new aport

ref #493
parent f0a29f5c
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-sec
_name=luasec
pkgver=0.4
pkgrel=0
pkgdesc="TLS/SSL Support for Lua"
url="http://www.inf.puc-rio.br/~brunoos/luasec/"
arch="x86 x86_64"
license="MIT"
depends="lua-socket"
makedepends="lua-dev openssl-dev"
install=
subpackages="$pkgname-doc"
source="http://www.inf.puc-rio.br/~brunoos/luasec/download/luasec-$pkgver.tar.gz"
_builddir="$srcdir"/$_name-$pkgver
prepare() {
cd "$_builddir"
}
build() {
cd "$_builddir"
make linux || return 1
}
package() {
_luasharedir=/usr/share/lua/5.1
_lualibdir=/usr/lib/lua/5.1
cd "$_builddir"
mkdir -p "$pkgdir"/$_luasharedir "$pkgdir"/$_lualibdir
make LUAPATH="$pkgdir"/$_luasharedir \
LUACPATH="$pkgdir"/$_lualibdir \
install
mkdir -p "$pkgdir"/usr/share/doc/$pkgname
cp -r samples "$pkgdir"/usr/share/doc/$pkgname/
}
md5sums="712158d60207bdbb6215fc7e07d8db24 luasec-0.4.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment