summaryrefslogtreecommitdiff
path: root/extra/evolution-sharp/PKGBUILD
blob: 8c35277755be2a4685402461a4e02c80cc171fa0 (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 94159 2010-10-04 20:47:03Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=evolution-sharp
pkgver=0.21.1
pkgrel=2
pkgdesc="C# bindings for Novell Evolution"
arch=(i686 x86_64)
license=('GPL')
url="http://ftp.gnome.org/pub/GNOME/sources/evolution-sharp/"
depends=('evolution-data-server>=2.32.0')
makedepends=('pkg-config' 'gtk-sharp-2>=2.12.8')
options=('!libtool')
source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/0.21/${pkgname}-${pkgver}.tar.bz2
        evolution-sharp-0.21.1-fix-retarded-version-check.patch
        evolution-data-server-lib-target.patch)
sha256sums=('3cb78088e332f71b2a7958d2e8c6af3c9ff168731c8fb423aad7038cbdef3a1c'
            '80f98baf3336383241deac73c3f0d3a0905c9a2a3790db7ec4bf6089a577cf5b'
            '177492c896d6cfc34f728d578e6948463f16ed731ffbf6aa555f9ec4b7f7af9e')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  patch -Np1 -i "${srcdir}/evolution-sharp-0.21.1-fix-retarded-version-check.patch"
  patch -Np1 -i "${srcdir}/evolution-data-server-lib-target.patch"
  autoreconf -fi

  export MONO_SHARED_DIR="${startdir}/src/.wabi"
  mkdir -p "${MONO_SHARED_DIR}"

  ./configure --prefix=/usr --sysconfdir=/etc \
              --localstatedir=/var --disable-static
  make DESTDIR="${pkgdir}" install
  rm -f "${pkgdir}/usr/lib/libevolutionglue.a"
}