blob: b8b3eaa208c7a75735b3ffce57899b6cd2b14e86 (
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
47
48
49
50
51
52
53
54
|
# $Id: PKGBUILD 215678 2014-06-30 06:54:10Z tpowa $
#Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=unison
pkgver=2.40.102
pkgrel=2
pkgdesc="Unison is a file-synchronization tool"
arch=(i686 x86_64)
license=('GPL2')
url="http://www.cis.upenn.edu/~bcpierce/unison"
depends=('glibc')
makedepends=('ocaml' 'lablgtk2' 'imagemagick')
optdepends=('gtk2: for gtk2 support')
source=(http://www.cis.upenn.edu/~bcpierce/unison/download/releases/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz
$pkgname.desktop)
options=(!makeflags)
build() {
cd "$srcdir/$pkgname-$pkgver"
CFLAGS=""
make clean
make mkProjectInfo
make UISTYLE=text DEBUGGING=false THREADS=true
mv unison unison-text
# 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 "$pkgdir"/usr/bin/unison-gtk
# clean the builddir and rebuild with gtk2 support
make clean
make mkProjectInfo
make UISTYLE=gtk2 DEBUGGING=false THREADS=true
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 unison-text "$pkgdir"/usr/bin/unison
install -Dm755 unison "$pkgdir"/usr/bin/unison-gtk2
# install a .desktop file; create a compliant icon from ico file and install the png
install -Dm644 ../$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
convert win32rc/U.ico unison.png
install -Dm644 ${pkgname}-1.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
# make symlink for .desktop file
cd "$pkgdir"/usr/bin
ln -s unison-gtk2 unison-x11
# make versioned symlink #29827
ln -s unison unison-2.40
}
md5sums=('42caf869f40440ed0e75eef07a605b2e'
'2daecba7705455a8e4b769e48b059872')
|