Advertisement
Guest User

fukawi2

a guest
Apr 29th, 2010
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.60 KB | None | 0 0
  1. # $Id: PKGBUILD 51459 2009-09-08 15:14:35Z tpowa $
  2. #Maintainer: Tobias Powalowski <tpowa@archlinux.org>
  3.  
  4. pkgname=unison
  5. pkgver=2.27.157
  6. pkgrel=1
  7. pkgdesc="Unison is a file-synchronization tool"
  8. arch=(i686 x86_64)
  9. license=('GPL2')
  10. url="http://www.cis.upenn.edu/~bcpierce/unison"
  11. depends=('glibc')
  12. makedepends=('ocaml' 'lablgtk' 'lablgtk2' 'imagemagick')
  13. source=("http://www.cis.upenn.edu/~bcpierce/unison/download/releases/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz"
  14.         "$pkgname.desktop")
  15. options=(!makeflags)
  16. install=unison.install
  17.  
  18. build() {
  19.   cd $startdir/src/$pkgname-$pkgver
  20.   CFLAGS=""
  21.   make clean
  22.   make UISTYLE=text DEBUGGING=false THREADS=true || return 1
  23.   mkdir -p $startdir/pkg/usr/bin
  24.   install -Dm755 unison $startdir/pkg/usr/bin/unison
  25.  # clean the builddir and rebuild with gtk support
  26.   make clean
  27.   make UISTYLE=gtk DEBUGGING=false THREADS=true || return 1
  28.   install -Dm755 unison $startdir/pkg/usr/bin/unison-gtk
  29.  # clean the builddir and rebuild with gtk2 support
  30.   make clean
  31.   make UISTYLE=gtk2 DEBUGGING=false THREADS=true || return 1
  32.   install -Dm755 unison $startdir/pkg/usr/bin/unison-gtk2
  33.  # install a .desktop file; create a compliant icon from ico file and install the png
  34.   install -Dm644 ../$pkgname.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop
  35.   convert win32rc/U.ico unison.png
  36.   install -Dm644 ${pkgname}-1.png  $startdir/pkg/usr/share/pixmaps/$pkgname.png
  37.  # make symlink for .desktop file
  38.   cd $startdir/pkg//usr/bin
  39.   ln -s unison-gtk2 unison-x11
  40. }
  41. md5sums=('4cc2a0332cb8c947adc04b9d4f2a83b0'
  42.          '2daecba7705455a8e4b769e48b059872')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement