aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-03-09 23:40:01 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-03-10 02:17:25 +0100
commitbf4ce0560062162a6ff38031eaec9ad1a55e89fd (patch)
tree0f1e2163320a6e56171c8120d2c5d002304abba2
parent2e8aff5dd135ae5edb4fa5fff5d802fa67e10057 (diff)
downloadaports-bf4ce0560062162a6ff38031eaec9ad1a55e89fd.tar.bz2
aports-bf4ce0560062162a6ff38031eaec9ad1a55e89fd.tar.xz
community/unison: fix/add version suffix to all binaries
-rw-r--r--community/unison/APKBUILD14
1 files changed, 10 insertions, 4 deletions
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 <ganwell@fangorn.ch>
# Maintainer: Jean-Louis Fuchs <ganwell@fangorn.ch>
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