aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-ldap/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-03-09 15:07:40 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-03-09 15:08:37 +0100
commite59090c79f58283a186295c52f1233cdbdda2e03 (patch)
tree1c73f1a6e867d7e1233999d384a9e5d563af9d1a /main/lua-ldap/APKBUILD
parent133aea0afd12612e808056332dad85087a8fcc86 (diff)
downloadaports-e59090c79f58283a186295c52f1233cdbdda2e03.tar.bz2
aports-e59090c79f58283a186295c52f1233cdbdda2e03.tar.xz
main/lua-ldap: fix subpackages' name
Diffstat (limited to 'main/lua-ldap/APKBUILD')
-rw-r--r--main/lua-ldap/APKBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/lua-ldap/APKBUILD b/main/lua-ldap/APKBUILD
index d85d87eeb7..6c387ef921 100644
--- a/main/lua-ldap/APKBUILD
+++ b/main/lua-ldap/APKBUILD
@@ -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"