aboutsummaryrefslogtreecommitdiffstats
path: root/community/unison
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2018-03-09 22:54:52 +0100
committerJakub Jirutka <jakub@jirutka.cz>2018-03-10 02:17:25 +0100
commit2e8aff5dd135ae5edb4fa5fff5d802fa67e10057 (patch)
treef3b610f8d04fc12c8fb7ac8e75ae8d448fda19a6 /community/unison
parent74ff07c2c66e578127fefde3120bc8ae8268f151 (diff)
downloadaports-2e8aff5dd135ae5edb4fa5fff5d802fa67e10057.tar.bz2
aports-2e8aff5dd135ae5edb4fa5fff5d802fa67e10057.tar.xz
community/unison: improve abuild
Diffstat (limited to 'community/unison')
-rw-r--r--community/unison/APKBUILD26
1 files changed, 15 insertions, 11 deletions
diff --git a/community/unison/APKBUILD b/community/unison/APKBUILD
index 0327c9618f..911b935560 100644
--- a/community/unison/APKBUILD
+++ b/community/unison/APKBUILD
@@ -4,7 +4,7 @@ pkgname=unison
pkgver=2.48.15.4
_pkgver=${pkgver%.*}v${pkgver##*.}
pkgrel=0
-pkgdesc="Unison - efficient file-synchronization tool"
+pkgdesc="Efficient file-synchronization tool"
url="https://www.cis.upenn.edu/~bcpierce/unison/"
# ocaml is not built for x86, armhf, s390x
# ocaml-lablgtk is not built for aarch64
@@ -23,37 +23,41 @@ builddir="$srcdir/$pkgname-$_pkgver/src"
build() {
cd "$builddir"
+
# ocamlopt is a front-end for gcc which will create optimized ocaml
# binaries. It will call gcc, but it hasn't implemented all gcc options.
# -ccopt is the way to pass arbitrary options.
- local _cflags=""
- for i in $CFLAGS; do _cflags="$_cflags -ccopt $i"; done
+ local _cflags=''
+ local i; for i in $CFLAGS; do
+ _cflags="$_cflags -ccopt $i"
+ done
export CFLAGS="$_cflags"
- for ui in text gtk2; do
+
+ local ui; for ui in text gtk2; do
make -j1 clean
make -j1 mkProjectInfo
make -j1 UISTYLE="$ui" DEBUGGING=false THREADS=true
- mv unison unison-"$ui"
+ mv unison unison-$ui
done
}
package() {
cd "$builddir"
- install -d "$pkgdir"/usr/bin
- install -m755 unison-text unison-fsmonitor "$pkgdir"/usr/bin
+ install -m 755 -D unison-text "$pkgdir"/usr/bin/unison-text
+ install -m 755 -D unison-fsmonitor "$pkgdir"/usr/bin/unison-fsmonitor
+
cd "$pkgdir"/usr/bin
ln -s unison-text unison
ln -s unison "unison-${_pkgver%.*}"
}
gui() {
- description="Unison - efficient file-synchronization tool (GTK+2 GUI)"
- depends="$pkgname"
+ pkgdesc="$pkgdesc (GTK+2 GUI)"
+ depends="$pkgname=$pkgver-r$pkgrel"
install_if="$pkgname=$pkgver-r$pkgrel gtk+2.0"
cd "$builddir"
- install -d "$subpkgdir"/usr/bin
- install -m755 unison-gtk2 "$subpkgdir"/usr/bin
+ install -m 755 -D unison-gtk2 "$subpkgdir"/usr/bin/unison-gtk2
}
sha512sums="658b37fd18d8dee517e88ad707f7e80c1731542a0e07e6a8d56e6598e38bcf405cdb8db224274bf9b3319ed87efc45057d1f79e6437c4ca53afe9cec4afe6c78 unison-2.48.15v4.tar.gz