archrelease: copy trunk to extra-x86_64
[arch-packages.git] / gtksourceview2 / trunk / PKGBUILD
blob1293bb18fff2c0034dcf6b177268e20600b590a6
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 pkgname=gtksourceview2
4 pkgver=2.10.5
5 pkgrel=5
6 pkgdesc="A text widget adding syntax highlighting and more to GNOME"
7 arch=('x86_64')
8 license=('GPL')
9 depends=('gtk2' 'libxml2')
10 makedepends=('intltool' 'pkg-config' 'python')
11 url="http://www.gnome.org"
12 source=(https://download.gnome.org/sources/gtksourceview/2.10/gtksourceview-${pkgver}.tar.bz2)
13 sha256sums=('c585773743b1df8a04b1be7f7d90eecdf22681490d6810be54c81a7ae152191e')
15 prepare() {
16   cd "${srcdir}/gtksourceview-${pkgver}"
17   sed -i 's#python#python2#' gtksourceview/language-specs/convert.py
20 build() {
21   cd "${srcdir}/gtksourceview-${pkgver}"
22   ./configure --prefix=/usr --sysconfdir=/etc \
23       --localstatedir=/var --disable-static
25   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
27   make
30 package() {
31   cd "${srcdir}/gtksourceview-${pkgver}"
32   make DESTDIR="${pkgdir}" install