aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgnome/APKBUILD
blob: 1ee192d75d29bbc21158bda966a2bec8c2fe3e7b (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
43
44
45
46
47
48
49
50
51
52
53
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgnome
pkgver=2.32.1
pkgrel=6
pkgdesc="GNOME base library"
url="http://www.gnome.org/"
arch="all"
license="LGPL"
depends=
depends_dev="gtk+3.0-dev gconf-dev libcanberra-dev gnome-vfs-dev libbonobo-dev"
makedepends="$depends_dev"
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.acc.umu.se/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2
	glib-2.36.patch"

_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
	local i
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"

	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="a4345e6087ae6195d65a4674ffdca559  libgnome-2.32.1.tar.bz2
67e4f7b0acea497406f06b04df608982  glib-2.36.patch"
sha256sums="b2c63916866485793b87398266dd7778548c1734923c272a94d84ee011b6f7a4  libgnome-2.32.1.tar.bz2
a0895e37c81f5f45c0f05931416ddbad6284735eded43b75dc8d0947a5bddd55  glib-2.36.patch"
sha512sums="f94e603255a93e73249e0fd9ed5604d732b44ad46f3cc3065afb46fc6162f6cf29304f49440b5c06303b8e68608b6fd16236076813febb5f1cbdcde4bfc3b3e3  libgnome-2.32.1.tar.bz2
1c7ed4c8012584c980f80ce12ee2e8ab1340432766b35b3139844927e183ef33d09a02eb7ec10bb8c7312950d2c1d0d1bdeef92512cded2278223470b2936087  glib-2.36.patch"