updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / gshare / PKGBUILD
blob0246fe637c9ac373a808928c1fdc07865ce59921
1 # $Id: PKGBUILD 56680 2011-10-10 10:59:37Z spupykin $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Contributor: William Rea <sillywilly@gmail.com>
5 pkgname=gshare
6 pkgver=0.94
7 pkgrel=5
8 pkgdesc="Easy file sharing for Gnome"
9 arch=('any')
10 url="https://launchpad.net/gshare-project"
11 license=('GPL')
12 depends=('gtk-sharp-2' 'avahi' 'gnome-sharp')
13 makedepends=('intltool' 'rarian')
14 install=$pkgname.install
15 options=('!makeflags')
16 source=(http://ftp.de.debian.org/debian/pool/main/g/gshare/gshare_$pkgver.orig.tar.gz
17         http://ftp.de.debian.org/debian/pool/main/g/gshare/gshare_$pkgver-11.diff.gz)
18 md5sums=('bfb05ba7502218e9d9cacc7916098a03'
19          'e2b2a6b7613e4ad9cbf55ff8da9f950a')
21 build() {
22   export MONO_SHARED_DIR=$srcdir/.wabi
23   mkdir -p $MONO_SHARED_DIR
25   cd $srcdir/gshare-$pkgver
26   patch -p1 <$srcdir/gshare_$pkgver-11.diff
27   ls -1 debian/patches/*.patch | while read A; do patch -p1 <$A; done
28   [ -f Makefile ] || ./configure --prefix=/usr --sysconfdir=/usr/share --with-dbus-service-dir=/usr/share/dbus-1/services --disable-schemas-install
29   sed -i 's/-scrollkeeper-update/#-scrollkeeper-update/' help/C/Makefile
30   make
31   make DESTDIR=$pkgdir install
33   mv $pkgdir/usr/share/gshare/gshared.desktop $pkgdir/usr/share/applications/
34   rm -r $pkgdir/usr/share/gshare
36   rm -r $MONO_SHARED_DIR