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 12:26:13 +0200
commitf52b4359df9be7fccfec3b6a3d3bced64804fd9c (patch)
tree8cfa7de747ffa021e09536e37d852f0056e9cfaa
parentf949aefb68d5238e833083393e32d5798499c9a3 (diff)
downloadaports-f52b4359df9be7fccfec3b6a3d3bced64804fd9c.tar.gz
aports-f52b4359df9be7fccfec3b6a3d3bced64804fd9c.tar.bz2
aports-f52b4359df9be7fccfec3b6a3d3bced64804fd9c.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. (cherry picked from commit f82c56514faa5dc3b730e218e4294e45237d2e96)
-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 \