summaryrefslogtreecommitdiff
path: root/extra/unison/PKGBUILD
blob: ffa6ab40b5402d7a3c5060c04bcd7d984317f13c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# $Id: PKGBUILD 126943 2011-06-08 20:05:25Z tpowa $
#Maintainer: Tobias Powalowski <tpowa@archlinux.org>

pkgname=unison
pkgver=2.40.63
pkgrel=2
pkgdesc="Unison is a file-synchronization tool"
arch=(i686 x86_64 'mips64el')
license=('GPL2')
url="http://www.cis.upenn.edu/~bcpierce/unison"
depends=('glibc')
makedepends=('ocaml' 'lablgtk2' 'imagemagick')
source=(http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/$pkgname-$pkgver.tar.gz
        $pkgname.desktop)
options=(!makeflags)

build() {
  cd $startdir/src/$pkgname-$pkgver
  CFLAGS=""
  make clean
  make mkProjectInfo 
  make UISTYLE=text DEBUGGING=false THREADS=true 
  mkdir -p $startdir/pkg/usr/bin 
  install -Dm755 unison $startdir/pkg/usr/bin/unison
 
 # clean the builddir and rebuild with gtk support
  # broken at the moment!
  # make clean
  # make mkProjectInfo
  # make UISTYLE=gtk DEBUGGING=false THREADS=true
  # 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
  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 ../$pkgname.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop
  convert win32rc/U.ico unison.png
  install -Dm644 ${pkgname}-1.png  $startdir/pkg/usr/share/pixmaps/$pkgname.png
 # make symlink for .desktop file
  cd $startdir/pkg//usr/bin
  ln -s unison-gtk2 unison-x11
}
md5sums=('3281207850cf6f0a17fe73f371893bd3'
         '2daecba7705455a8e4b769e48b059872')