Commit 52832f78 authored by Natanael Copa's avatar Natanael Copa

main/lua-md5: add lua 5.3 support and use intall_if

parent 0df78669
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
_luaversions="5.1 5.2"
_luaversions="5.1 5.2 5.3"
pkgname="lua-md5"
_name="md5"
pkgver=1.2
pkgrel=2
pkgrel=3
pkgdesc="Basic cryptographic facilities for Lua"
url="http://www.keplerproject.org/md5/"
url="https://github.com/keplerproject/md5"
arch="all"
license="MIT"
depends=""
makedepends=""
subpackages=""
for _i in $_luaversions; do
depends="$depends lua$_i-md5"
makedepends="$makedepends lua$_i-dev"
subpackages="$subpackages lua$_i-md5:split_${_i/./_}"
done
......@@ -48,7 +47,7 @@ package() {
_split() {
local d= _ver=$1
pkgdesc="Basic cryptographic facilities for Lua $_ver"
replaces="$pkgname"
install_if="lua$_ver $pkgname=$pkgver-r$pkgrel"
depends=
for d in usr/lib/lua usr/share/lua; do
if [ -d "$pkgdir"/$d/$_ver ]; then
......
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