db-move: moved linux-zen from [testing] to [extra] (x86_64)
[arch-packages.git] / libglade / trunk / PKGBUILD
blob186c4f1df7ca398467ce173818df844b505aaa2b
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 pkgname=libglade
4 pkgver=2.6.4
5 pkgrel=7
6 pkgdesc="Allows you to load glade interface files in a program at runtime"
7 arch=(x86_64)
8 license=('LGPL')
9 depends=('gtk2>=2.16.0' 'libxml2>=2.7.3')
10 makedepends=('python2' 'pkgconfig')
11 optdepends=('python2: libglade-convert script')
12 install=glade.install
13 source=(https://download.gnome.org/sources/${pkgname}/2.6/${pkgname}-${pkgver}.tar.bz2
14         libglade-2.0.1-nowarning.patch)
15 url="http://www.gnome.org"
16 sha256sums=('64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec'
17             '423c12af1c73442caa851a0b8db33b00fa4b778b1b422a4e8ac33d121d043008')
19 prepare() {
20   cd $pkgname-$pkgver
21   patch -Np1 -i ../libglade-2.0.1-nowarning.patch
24 build() {
25   cd $pkgname-$pkgver
26   PYTHON=/usr/bin/python2 ./configure --sysconfdir=/etc --prefix=/usr --localstatedir=/var
28   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
30   make
33 package() {
34   cd $pkgname-$pkgver
35   make DESTDIR="${pkgdir}" install
36   install -m755 libglade-convert "${pkgdir}/usr/bin/"