From 0c3a95f27307481d0db52f5e5128321ff3586436 Mon Sep 17 00:00:00 2001 From: Mike Brown Date: Sun, 25 Nov 2012 19:24:27 -0500 Subject: [PATCH] adding aur/unison-beta as it seems to work with current ocaml --- aur/unison-beta/PKGBUILD | 47 ++++++++++++++++++++++++++++++++++ aur/unison-beta/unison.desktop | 13 ++++++++++ aur/unison-beta/unison.install | 28 ++++++++++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 aur/unison-beta/PKGBUILD create mode 100644 aur/unison-beta/unison.desktop create mode 100644 aur/unison-beta/unison.install diff --git a/aur/unison-beta/PKGBUILD b/aur/unison-beta/PKGBUILD new file mode 100644 index 000000000..f2460c38c --- /dev/null +++ b/aur/unison-beta/PKGBUILD @@ -0,0 +1,47 @@ +#Contributor: Andreas Wagner + +pkgname=unison-beta +pkgver=2.45.4 +pkgrel=1 +pkgdesc="Unison is a file-synchronization tool. Beta Version" +arch=(i686 x86_64) +license=('GPL2') +url="http://www.cis.upenn.edu/~bcpierce/unison" +depends=('glibc') +makedepends=('ocaml' 'lablgtk2' 'imagemagick') +optdepends=('gtk2: graphical UI') +source=(http://www.cis.upenn.edu/~bcpierce/unison/download/releases/unison-$pkgver/unison-$pkgver.tar.gz \ + unison.desktop) +conflicts=('unison') +options=(!makeflags) +install=unison.install + +build() { + cd $startdir/src/unison-$pkgver + CFLAGS="" + make clean + make mkProjectInfo + make UISTYLE=text DEBUGGING=false THREADS=true || return 1 + mkdir -p $startdir/pkg/usr/bin + install -Dm755 unison $startdir/pkg/usr/bin/unison +## clean the builddir and rebuild with gtk support +# make clean +# make mkProjectInfo +# make UISTYLE=gtk DEBUGGING=false THREADS=true || return 1 +# install -Dm755 unison $startdir/pkg/usr/bin/unison-gtk +## clean the builddir and rebuild with gtk2 support + make clean + make mkProjectInfo + make UISTYLE=gtk2 DEBUGGING=false THREADS=true || return 1 + install -Dm755 unison $startdir/pkg/usr/bin/unison-gtk2 +## install a .desktop file; create a compliant icon from ico file and install the png + install -Dm644 ../unison.desktop $startdir/pkg/usr/share/applications/unison.desktop + convert win32rc/U.ico unison.png + install -Dm644 unison-1.png $startdir/pkg/usr/share/pixmaps/unison.png +## make symlink for .desktop file + cd $startdir/pkg//usr/bin + ln -s unison-gtk2 unison-x11 +} + +md5sums=('b345bff33a6fa21a9733904facd9fca6' + '2daecba7705455a8e4b769e48b059872') diff --git a/aur/unison-beta/unison.desktop b/aur/unison-beta/unison.desktop new file mode 100644 index 000000000..3a7e1d762 --- /dev/null +++ b/aur/unison-beta/unison.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=unison +Name[de]=unison +Comment=File synchronisation tool for X11 +Comment[de]=Datei Abgleicher und Synchronisierer +TryExec=unison-x11 +Exec=unison-x11 +Terminal=false +Type=Application +Categories=GTK;Application;Network; +Icon=unison.png +StartupNotify=true diff --git a/aur/unison-beta/unison.install b/aur/unison-beta/unison.install new file mode 100644 index 000000000..a520396d0 --- /dev/null +++ b/aur/unison-beta/unison.install @@ -0,0 +1,28 @@ +# arg 1: the new package version +post_install() { + echo "NOTE:" + echo " This build is without gtk1 frontend." + echo " For gtk2 frontend please add 'gtk2' package." + echo " Default X11 frontend is set to gtk2. " + echo "" +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 +} + +# arg 1: the old package version +pre_remove() { + /bin/true +} + +# arg 1: the old package version +post_remove() { + /bin/true +} + +op=$1 +shift +$op $*