Commit 583b71aa authored by Natanael Copa's avatar Natanael Copa

main/lua-mosquitto: use install_if

parent e85ebca6
......@@ -4,7 +4,7 @@ _luaversions="5.1 5.2 5.3"
pkgname=lua-mosquitto
pkgver=0.1
pkgrel=1
pkgrel=2
pkgdesc="Bindingd to libmosquitto for Lua"
url="https://github.com/flukso/lua-mosquitto"
arch="all"
......@@ -15,7 +15,6 @@ makedepends="$depends_dev mosquitto-dev"
subpackages=""
for _v in $_luaversions; do
depends="$depends lua$_v-mosquitto"
makedepends="$makedepends lua$_v-dev"
subpackages="$subpackages lua$_v-mosquitto:split_${_v/./_}"
done
......@@ -58,6 +57,7 @@ package() {
_split() {
local d= _ver=$1
pkgdesc="$pkgdesc $_ver"
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