blob: 2e25b61af6050d868589fef9c184e03d05dfc581 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
_luaversions="5.1 5.2 5.3"
pkgname=lua-ossl
_pkgname=luaossl
pkgver=20151221
_ver=${pkgver%_git*}
pkgrel=1
pkgdesc="A comprehensive OpenSSL Lua module"
url="http://25thandclement.com/~william/projects/luaossl.html"
arch="noarch"
license="MIT"
depends=""
makedepends="libressl-dev"
subpackages=""
for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev"
subpackages="$subpackages lua$_v-${pkgname#lua-}:_package"
done
source="luaossl-$_ver.tar.gz::https://github.com/wahern/$_pkgname/archive/rel-$pkgver.tar.gz
musl-fixes.patch"
builddir="$srcdir/$_pkgname-rel-$pkgver"
build() {
cd "$builddir"
make config prefix=/usr || return 1
local lver; for lver in $_luaversions; do
make openssl$lver || return 1
done
}
package() {
mkdir -p "$pkgdir"
}
_package() {
local lver="${subpkgname:3:3}"
pkgdesc="$pkgdesc for Lua $lver"
arch="all"
depends="lua$lver"
install_if="lua$lver $pkgname=$pkgver-r$pkgrel"
cd "$builddir"
make DESTDIR="$subpkgdir" install$lver
}
md5sums="97a11761177c90406c448e749913e4b8 luaossl-20151221.tar.gz
fae339e1611cbf84937eb47eab4845ed musl-fixes.patch"
sha256sums="fffb520a3a01c5715d5a178a8e939f19797dbc6be1f80a59d2cdfe0ffac01ff7 luaossl-20151221.tar.gz
f4d68db783f6543cf2f294057e2681f070034cec45a3f7108f14cc3b39325e25 musl-fixes.patch"
sha512sums="d0493e0cdc95409f3653c64950015afec9303d4abbfb0c182ecbe9eea36feeb7bda27472787dc671851738234cfc0b44e87ab7cf14d63a6caf021d3ecf82cf0f luaossl-20151221.tar.gz
5c967f8ecabd2f500935181e3bf84568421c409de23536f76a10c5da341236a4bbf870a7a9607eba272cff4a6e76cea2988ce7744cb99f501c46bd3c48ec4bb8 musl-fixes.patch"
|