aboutsummaryrefslogtreecommitdiffstats
path: root/main/libglade/APKBUILD
blob: 3a4b079e39a260e525e63ff8253e6a6865fef0ce (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libglade
pkgver=2.6.4
pkgrel=1
pkgdesc="Allows you to load glade interface files in a program at runtime"
url="http://www.gnome.org"
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
makedepends="python pkgconfig gtk+-dev libxml2-dev gettext-dev libiconv-dev
	expat-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 \
		--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
}
md5sums="d1776b40f4e166b5e9c107f1c8fe4139  libglade-2.6.4.tar.bz2
4f879c0ce550004905aa0fb24f25c353  libglade-2.0.1-nowarning.patch"