summaryrefslogtreecommitdiff
path: root/extra/gtksourceview-sharp-2.0/PKGBUILD
blob: c62d29dc07a07787fa74c19f9834fba66fcb12da (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
# $Id: PKGBUILD 22404 2008-12-26 18:25:17Z jgc $
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Brice Carpentier <brice@daknet.org>

pkgname=gtksourceview-sharp-2.0
pkgver=0.12
pkgrel=1
pkgdesc="a C# binding to gtksourceview"
url="http://www.mono-project.com/"
depends=('gtksourceview' 'gtk-sharp-2>=2.12.7' 'gnome-sharp>=2.24.0')
makedepends=('monodoc')
conflicts=('gtksourceview-sharp')
provides=('gtksourceview-sharp')
source=(http://ftp.novell.com/pub/mono/sources/gtksourceview-sharp2/${pkgname}-${pkgver}.tar.bz2
	gtksourceview-sharp2-gnome-print.patch)
license=('LGPL2')
arch=('i686' 'x86_64' 'mips64el')

build() {
  export MONO_SHARED_DIR="${srcdir}/weird"
  mkdir -p "${MONO_SHARED_DIR}"

  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -Np0 -i "${srcdir}/gtksourceview-sharp2-gnome-print.patch" || return 1
  autoreconf || return 1
  ./configure --prefix=/usr || return 1
  make || return 1
  make GACUTIL="/usr/bin/gacutil /root ${pkgdir}/usr/lib" \
    DESTDIR="${pkgdir}" install || return 1
  rm -rf "${pkgdir}/usr/share/gtksourceview-1.0"
}