From bf4ce0560062162a6ff38031eaec9ad1a55e89fd Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Fri, 9 Mar 2018 23:40:01 +0100 Subject: community/unison: fix/add version suffix to all binaries --- community/unison/APKBUILD | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'community/unison') diff --git a/community/unison/APKBUILD b/community/unison/APKBUILD index 911b935560..ffee828fad 100644 --- a/community/unison/APKBUILD +++ b/community/unison/APKBUILD @@ -1,8 +1,10 @@ # Contributor: Jean-Louis Fuchs # Maintainer: Jean-Louis Fuchs pkgname=unison +# Note: unison breaks compatibility between minor (major.minor) versions. pkgver=2.48.15.4 _pkgver=${pkgver%.*}v${pkgver##*.} +_majorver=${_pkgver%.*} # x.y pkgrel=0 pkgdesc="Efficient file-synchronization tool" url="https://www.cis.upenn.edu/~bcpierce/unison/" @@ -43,12 +45,14 @@ build() { package() { cd "$builddir" - install -m 755 -D unison-text "$pkgdir"/usr/bin/unison-text - install -m 755 -D unison-fsmonitor "$pkgdir"/usr/bin/unison-fsmonitor + install -m 755 -D unison-text \ + "$pkgdir"/usr/bin/unison-text-$_majorver + install -m 755 -D unison-fsmonitor \ + "$pkgdir"/usr/bin/unison-fsmonitor-$_majorver cd "$pkgdir"/usr/bin + ln -s unison-text-$_majorver unison-text ln -s unison-text unison - ln -s unison "unison-${_pkgver%.*}" } gui() { @@ -57,7 +61,9 @@ gui() { install_if="$pkgname=$pkgver-r$pkgrel gtk+2.0" cd "$builddir" - install -m 755 -D unison-gtk2 "$subpkgdir"/usr/bin/unison-gtk2 + install -m 755 -D unison-gtk2 \ + "$subpkgdir"/usr/bin/unison-gtk2-$_majorver + ln -s unison-gtk2-$_majorver "$subpkgdir"/usr/bin/unison-gtk2 } sha512sums="658b37fd18d8dee517e88ad707f7e80c1731542a0e07e6a8d56e6598e38bcf405cdb8db224274bf9b3319ed87efc45057d1f79e6437c4ca53afe9cec4afe6c78 unison-2.48.15v4.tar.gz -- cgit v1.2.3