aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-sec/APKBUILD
blob: 8d8cf95cf112489451ef4afa32970b5b842a1969 (plain)
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
31
32
33
34
35
36
37
38
39
40
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-sec
_name=luasec
pkgver=0.4
pkgrel=1
pkgdesc="TLS/SSL Support for Lua"
url="http://www.inf.puc-rio.br/~brunoos/luasec/"
arch="all"
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"