blob: e46002e81a56277203da2fbf9fca3e4035008040 (
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
37
38
39
40
41
42
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libglade
pkgver=2.6.4
pkgrel=9
pkgdesc="Allows you to load glade interface files in a program at runtime"
url="http://www.gnome.org"
arch="all"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
depends="libxml2-utils"
makedepends="python pkgconfig gtk+-dev libxml2-dev"
install="$pkgname.post-install $pkgname.pre-upgrade $pkgname.post-upgrade
$pkgname.post-deinstall"
source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/2.6/$pkgname-$pkgver.tar.bz2
$pkgname-2.0.1-nowarning.patch
"
depends_dev="gtk+-dev libxml2-dev"
_builddir="$srcdir"/$pkgname-$pkgver
package() {
cd "$_builddir"
patch -Np1 -i "$srcdir"/libglade-2.0.1-nowarning.patch || return 1
}
build() {
cd "$_builddir"
./configure --sysconfdir=/etc \
--prefix=/usr \
--disable-static \
--localstatedir=/var || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -m755 libglade-convert "$pkgdir"/usr/bin/ || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="d1776b40f4e166b5e9c107f1c8fe4139 libglade-2.6.4.tar.bz2
4f879c0ce550004905aa0fb24f25c353 libglade-2.0.1-nowarning.patch"
|