aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/gnome-panel/APKBUILD
blob: 78d2cf104ccb61471923f1c5cb559bc363d7cdce (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
54
55
56
57
58
59
60
61
62
63
64
65
66
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=gnome-panel
pkgver=2.32.1
pkgrel=12
pkgdesc="GNOME Panel"
url="http://projects.gnome.org/gnome-panel"
arch="all"
license="GPL"
depends=
depends_dev="gtk+-dev
	     gconf-dev
	     libx11-dev
	     gnome-doc-utils
	     libgnome-dev
	     gnome-desktop-dev
	     gnome-menus-dev
	     libwnck-dev
	     librsvg-dev
	     libgweather-dev"
makedepends="$depends_dev intltool gobject-introspection-dev"
install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade"
subpackages="$pkgname-dev $pkgname-lang"
replaces_dev="$pkgname"
source="ftp://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2
	as-needed.patch
	libm-underlinking.patch
	link-gmodule.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 \
		--disable-scrollkeeper \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"

	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="a228035e1f7026abf296b797f1f7d2f9  gnome-panel-2.32.1.tar.bz2
42a7f2693e5f99ce3440bd53ebccbae0  as-needed.patch
292372a7f264bb63ca9eb3c69a664ee1  libm-underlinking.patch
399b61956a678c60e0f0d28eeca63aba  link-gmodule.patch"