APKBUILD 2.24 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libglade
pkgver=2.6.4
4
pkgrel=14
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="Allows you to load glade interface files in a program at runtime"
url="http://www.gnome.org"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9
license="LGPL"
subpackages="$pkgname-dev $pkgname-doc"
10
depends="libxml2-utils"
11
depends_dev="gtk+2.0-dev libxml2-dev"
12
makedepends="$depends_dev python2 autoconf automake libtool"
Natanael Copa's avatar
Natanael Copa committed
13 14
install="$pkgname.post-install $pkgname.pre-upgrade $pkgname.post-upgrade
	$pkgname.post-deinstall"
15
source="https://download.gnome.org/sources/$pkgname/2.6/$pkgname-$pkgver.tar.bz2
Natanael Copa's avatar
Natanael Copa committed
16
	$pkgname-2.0.1-nowarning.patch
17
	libglade-gmodule.patch
Natanael Copa's avatar
Natanael Copa committed
18 19
	"

20
_builddir="$srcdir"/$pkgname-$pkgver
21 22 23 24

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
25 26 27 28 29 30 31
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	libtoolize --force && aclocal && autoheader && autoconf \
		&& automake --add-missing  || return 1
32 33 34 35
}

build() {
	cd "$_builddir"
36
	sed -i '/DG_DISABLE_DEPRECATED/d' glade/Makefile.in || return 1
37 38 39 40
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--sysconfdir=/etc \
Natanael Copa's avatar
Natanael Copa committed
41
		--prefix=/usr \
42
		--disable-static \
43 44
		--localstatedir=/var \
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
45
	make || return 1
46 47 48 49
}

package() {
	cd "$_builddir"
Natanael Copa's avatar
Natanael Copa committed
50 51 52
	make DESTDIR="$pkgdir" install || return 1
	install -m755 libglade-convert "$pkgdir"/usr/bin/ || return 1
}
53

Natanael Copa's avatar
Natanael Copa committed
54
md5sums="d1776b40f4e166b5e9c107f1c8fe4139  libglade-2.6.4.tar.bz2
55 56 57 58 59 60 61 62
4f879c0ce550004905aa0fb24f25c353  libglade-2.0.1-nowarning.patch
324c7f96579f0675c37c9f83be7289a1  libglade-gmodule.patch"
sha256sums="64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec  libglade-2.6.4.tar.bz2
423c12af1c73442caa851a0b8db33b00fa4b778b1b422a4e8ac33d121d043008  libglade-2.0.1-nowarning.patch
7d13443662bbfc2e12a717a050657e054f5eced46fa75f33fc083be65bf4f285  libglade-gmodule.patch"
sha512sums="b725842febaf4c1f0d305a629ae1c61ea2de24dd6f41937e806c078fada2cea483195ef40f5238ce2045e47130c92559e984f677de667b840dd7fff0f8559735  libglade-2.6.4.tar.bz2
5ab9dfb85938fb7e9ec637a9d68f3db961f3986e1eb9eec0d684af4ce2361c83d6998283b2bd5b4e1bd7950ca456cc3ea7fae567ac52ae391f6c9d5456c6dd2e  libglade-2.0.1-nowarning.patch
8ab898ca484ebcf2fbb39a9f6e59f214f8c378f1b50c9abd1553a8dfb1e087f4bd7c90d74b5a02d2f92994707fcb3c351203669193b6511c493486e676023224  libglade-gmodule.patch"