main/lua-bit32: fix upgrade from lua-bitlib

lua-bitlib was renamed to lua-bit32 in commit 69f2a224e313. Add replaces
and provides for backwards compatibility and a smoother upgrade.
This commit is contained in:
Natanael Copa 2019-08-26 10:21:41 +00:00
parent 7149c919df
commit f82c56514f

View File

@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lua-bit32
pkgver=5.3.0
pkgrel=2
pkgrel=3
pkgdesc="A lua library providing bitwise operations"
url="https://github.com/keplerproject/lua-compat-5.2"
arch="all"
@ -36,6 +36,9 @@ _subpackage() {
pkgdesc="$pkgdesc (for Lua $lver)"
depends="lua$lver"
install_if="$pkgname=$pkgver-r$pkgrel lua$lver"
replaces="lua$lver-bitlib"
# backwards compatibility
provides="lua$lver-bitlib=$pkgver-r$pkgrel"
cd "$builddir"
install -D -m 755 $lver/bit32.so \