aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-08-26 10:21:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-08-26 10:25:28 +0000
commitf82c56514faa5dc3b730e218e4294e45237d2e96 (patch)
treefe6b3f3a95b0e4c7567051666b4ef5b7ae34bac2
parent7149c919df587e3f9125fdac8bc2ccd4952027e3 (diff)
downloadaports-f82c56514faa5dc3b730e218e4294e45237d2e96.tar.gz
aports-f82c56514faa5dc3b730e218e4294e45237d2e96.tar.bz2
aports-f82c56514faa5dc3b730e218e4294e45237d2e96.tar.xz
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.
-rw-r--r--main/lua-bit32/APKBUILD5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/lua-bit32/APKBUILD b/main/lua-bit32/APKBUILD
index 980f55b81f..3256a9c0ba 100644
--- a/main/lua-bit32/APKBUILD
+++ b/main/lua-bit32/APKBUILD
@@ -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 \