summaryrefslogtreecommitdiff
path: root/extra/evolution-sharp/PKGBUILD
blob: edd8a44bfafd6b3c03c9fb9c78bc29b1dceb135c (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
# $Id: PKGBUILD 122598 2011-05-04 19:22:42Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=evolution-sharp
pkgver=0.21.1
pkgrel=3
pkgdesc="C# bindings for Novell Evolution"
arch=(i686 x86_64 'mips64el')
license=('GPL')
url="http://ftp.gnome.org/pub/GNOME/sources/evolution-sharp/"
depends=('evolution-data-server')
makedepends=('pkg-config' 'gtk-sharp-2')
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'
            '910783e0213002d40d3111b0a5bc5103ca21a8d1a33bd1a305238dc147cf1401')

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="${srcdir}/.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"
}