Commit e59090c7 authored by Jakub Jirutka's avatar Jakub Jirutka

main/lua-ldap: fix subpackages' name

parent 133aea0a
......@@ -4,7 +4,7 @@
pkgname=lua-ldap
_pkgname=lualdap
pkgver=1.2.3
pkgrel=0
pkgrel=1
pkgdesc="Lua binding to LDAP"
url="https://github.com/bdellegrazie/lualdap"
arch="all"
......@@ -18,7 +18,7 @@ builddir="$srcdir/$_pkgname-$pkgver"
_luaversions="5.1 5.2 5.3"
for _v in $_luaversions; do
makedepends="$makedepends lua$_v-dev"
subpackages="$subpackages lua$_v-$_pkgname:_package"
subpackages="$subpackages lua$_v-${pkgname#lua-}:_package"
done
prepare() {
......@@ -50,6 +50,7 @@ _package() {
local lver="${subpkgname:3:3}"
pkgdesc="$pkgdesc (for Lua $lver)"
depends="lua$lver"
replaces="lua$lver-lualdap" # for backward compatibility (v3.5)
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
[ "$lver" = "5.1" ] && replaces="$pkgname"
......
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