summaryrefslogtreecommitdiff
path: root/community/gshare/PKGBUILD
blob: 4d0e43561940ae71f2a1927ad2466b9ab9083a34 (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
# $Id: PKGBUILD 18374 2010-06-03 15:40:23Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=gshare
pkgver=0.94
pkgrel=4
pkgdesc="Easy file sharing for Gnome"
arch=('i686' 'x86_64' 'mips64el')
url="https://launchpad.net/gshare-project"
license=('GPL')
depends=('gtk-sharp-2' 'avahi' 'gnome-sharp')
install=$pkgname.install
options=('!makeflags')
source=(http://ftp.de.debian.org/debian/pool/main/g/gshare/gshare_$pkgver.orig.tar.gz
	http://ftp.de.debian.org/debian/pool/main/g/gshare/gshare_$pkgver-10.diff.gz)
md5sums=('bfb05ba7502218e9d9cacc7916098a03'
         '3dd6000e9afc0db819a6ec69047b440d')

build() {
  export MONO_SHARED_DIR=$srcdir/.wabi
  mkdir -p $MONO_SHARED_DIR

  cd $srcdir/gshare-$pkgver
  patch -p1 <$srcdir/gshare_$pkgver-10.diff
  ls -1 debian/patches/*.patch | while read A; do patch -p1 <$A; done
  ./configure --prefix=/usr --sysconfdir=/usr/share --with-dbus-service-dir=/usr/share/dbus-1/services --disable-schemas-install
  sed -i 's/-scrollkeeper-update/#-scrollkeeper-update/' help/C/Makefile
  make || return 1
  make DESTDIR=$pkgdir install || return 1

  mv $pkgdir/usr/share/gshare/gshared.desktop $pkgdir/usr/share/applications/
  rm -r $pkgdir/usr/share/gshare

  rm -r $MONO_SHARED_DIR
}