blob: 94c2b3885320023d91f1a5591dc54724a589a6f5 (
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
|
# 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=20170903
_ver=${pkgver%_git*}
pkgrel=0
pkgdesc="A comprehensive OpenSSL Lua module"
url="http://25thandclement.com/~william/projects/luaossl.html"
arch="all"
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"
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"
depends="lua$lver"
install_if="lua$lver $pkgname=$pkgver-r$pkgrel"
local rockdir="$subpkgdir/usr/lib/luarocks/rocks-$lver/$_pkgname/$pkgver-1"
cd "$builddir"
make DESTDIR="$subpkgdir" install$lver
mkdir -p "$rockdir"
echo 'rock_manifest = {}' > "$rockdir"/rock_manifest
}
sha512sums="7c01ec77aae30a63622afea4ac6060ce0743853ab72ed7f609e1eacc56adc1aee8dd70de62823d7c9911b370352ced7a671016c7f4078095554924a859f8e2db luaossl-20170903.tar.gz"
|