git » lrzsz.git » commit 131db78

upgpkg: 0.12.20-12

author Sergej Pupykin
2024-01-26 22:22:25 UTC
committer Sergej Pupykin
2024-01-26 22:22:25 UTC
parent 8b1395eb0b86d81c56244d8f9588adadecf6f8b5

upgpkg: 0.12.20-12
avoid manpage conflict
https://gitlab.archlinux.org/archlinux/packaging/packages/lrzsz/-/issues/2

.SRCINFO +1 -1
PKGBUILD +6 -1

diff --git a/.SRCINFO b/.SRCINFO
index 3ffced0..d7b1e20 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = lrzsz
 	pkgdesc = xmodem, ymodem and zmodem file transfer protocols
 	pkgver = 0.12.20
-	pkgrel = 11
+	pkgrel = 12
 	url = https://www.ohse.de/uwe/software/lrzsz.html
 	arch = x86_64
 	license = GPL2
diff --git a/PKGBUILD b/PKGBUILD
index 4690041..b369075 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=lrzsz
 pkgver=0.12.20
-pkgrel=11
+pkgrel=12
 pkgdesc="xmodem, ymodem and zmodem file transfer protocols"
 url="https://www.ohse.de/uwe/software/lrzsz.html"
 license=('GPL2')
@@ -33,5 +33,10 @@ package() {
   cd "$srcdir"/$pkgname-$pkgver
   make -j1 DESTDIR="$pkgdir" install
   install -dm0755 "$pkgdir"/usr/bin/lrzsz
+  # does not work with custom name so move them to separate dir to avoid conflict with lrzip
+  # https://gitlab.archlinux.org/archlinux/packaging/packages/lrzsz/-/issues/1
   mv "$pkgdir"/usr/bin/??? "$pkgdir"/usr/bin/lrzsz/
+  cd "$pkgdir"/usr/share/man/man1/
+  mv lrz.1 lrzsz-rz.1
+  mv lsz.1 lrzsz-sz.1
 }