Commit d93f19a7 authored by Jakub Jirutka's avatar Jakub Jirutka

main/lua-ldap: fix replaces for 5.1

parent e59090c7
......@@ -4,7 +4,7 @@
pkgname=lua-ldap
_pkgname=lualdap
pkgver=1.2.3
pkgrel=1
pkgrel=2
pkgdesc="Lua binding to LDAP"
url="https://github.com/bdellegrazie/lualdap"
arch="all"
......@@ -50,9 +50,9 @@ _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"
replaces="lua$lver-lualdap" # for backward compatibility (v3.5)
[ "$lver" = "5.1" ] && replaces="${replaces:-} $pkgname" # for backward compatibility (<v3.4)
cd "$builddir-$lver"
make DESTDIR="$subpkgdir" \
......
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