summaryrefslogtreecommitdiffstats
path: root/main/gnome-panel
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-01-24 11:29:44 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-01-24 11:29:44 -0600
commitec5f73dfdbd4663c9e15a45f77f07a471247520b (patch)
tree633f87cdb53dba5ad575aaa12bb292d4527d13cb /main/gnome-panel
parent02d24b36f7dd89648923bcae35e271848ab9ca3f (diff)
downloadaports-ec5f73dfdbd4663c9e15a45f77f07a471247520b.tar.bz2
aports-ec5f73dfdbd4663c9e15a45f77f07a471247520b.tar.xz
testing/gnome-panel: promote to main
Diffstat (limited to 'main/gnome-panel')
-rw-r--r--main/gnome-panel/APKBUILD53
-rw-r--r--main/gnome-panel/gnome-panel.post-install21
-rw-r--r--main/gnome-panel/gnome-panel.post-upgrade21
-rw-r--r--main/gnome-panel/gnome-panel.pre-deinstall21
4 files changed, 116 insertions, 0 deletions
diff --git a/main/gnome-panel/APKBUILD b/main/gnome-panel/APKBUILD
new file mode 100644
index 000000000..ff94352f3
--- /dev/null
+++ b/main/gnome-panel/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=gnome-panel
+pkgver=2.32.1
+pkgrel=5
+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"
+install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade"
+subpackages="$pkgname-dev"
+replaces_dev="$pkgname"
+source="ftp://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2"
+
+_builddir="${srcdir}/${pkgname}-${pkgver}"
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --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
+}
+
+md5sums="a228035e1f7026abf296b797f1f7d2f9 gnome-panel-2.32.1.tar.bz2"
diff --git a/main/gnome-panel/gnome-panel.post-install b/main/gnome-panel/gnome-panel.post-install
new file mode 100644
index 000000000..06060f905
--- /dev/null
+++ b/main/gnome-panel/gnome-panel.post-install
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+for i in \
+ clock.schemas \
+ fish.schemas \
+ panel-compatibility.schemas \
+ panel-general.schemas \
+ panel-global.schemas \
+ panel-object.schemas \
+ panel-toplevel.schemas \
+ window-list.schemas \
+ workspace-switcher.schemas \
+; do
+ echo "Installing GConf2 schema $i."
+ GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
+ /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/$i >/dev/null
+done
+
+GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`
+echo "Installing GConf2 default entries to ${GCONF_CONFIG_SOURCE}"
+/usr/bin/gconftool-2 --config-source="${GCONF_CONFIG_SOURCE}" --direct --load /etc/gconf/schemas/panel-default-setup.entries >/dev/null
diff --git a/main/gnome-panel/gnome-panel.post-upgrade b/main/gnome-panel/gnome-panel.post-upgrade
new file mode 100644
index 000000000..06060f905
--- /dev/null
+++ b/main/gnome-panel/gnome-panel.post-upgrade
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+for i in \
+ clock.schemas \
+ fish.schemas \
+ panel-compatibility.schemas \
+ panel-general.schemas \
+ panel-global.schemas \
+ panel-object.schemas \
+ panel-toplevel.schemas \
+ window-list.schemas \
+ workspace-switcher.schemas \
+; do
+ echo "Installing GConf2 schema $i."
+ GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
+ /usr/bin/gconftool-2 --makefile-install-rule /etc/gconf/schemas/$i >/dev/null
+done
+
+GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`
+echo "Installing GConf2 default entries to ${GCONF_CONFIG_SOURCE}"
+/usr/bin/gconftool-2 --config-source="${GCONF_CONFIG_SOURCE}" --direct --load /etc/gconf/schemas/panel-default-setup.entries >/dev/null
diff --git a/main/gnome-panel/gnome-panel.pre-deinstall b/main/gnome-panel/gnome-panel.pre-deinstall
new file mode 100644
index 000000000..96aa7274d
--- /dev/null
+++ b/main/gnome-panel/gnome-panel.pre-deinstall
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+for i in \
+ clock.schemas \
+ fish.schemas \
+ panel-compatibility.schemas \
+ panel-general.schemas \
+ panel-global.schemas \
+ panel-object.schemas \
+ panel-toplevel.schemas \
+ window-list.schemas \
+ workspace-switcher.schemas \
+; do
+ echo "Uninstalling GConf2 schema $i."
+ GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
+ /usr/bin/gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/$i >/dev/null
+done
+
+GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`
+echo "Uninstalling GConf2 default entries from ${GCONF_CONFIG_SOURCE}"
+/usr/bin/gconftool-2 --config-source="${GCONF_CONFIG_SOURCE}" --direct --unload /etc/gconf/schemas/panel-default-setup.entries >/dev/null