diff options
Diffstat (limited to 'main/gnome-panel')
-rw-r--r-- | main/gnome-panel/APKBUILD | 54 | ||||
-rw-r--r-- | main/gnome-panel/gnome-panel.post-install | 21 | ||||
-rw-r--r-- | main/gnome-panel/gnome-panel.post-upgrade | 21 | ||||
-rw-r--r-- | main/gnome-panel/gnome-panel.pre-deinstall | 21 |
4 files changed, 117 insertions, 0 deletions
diff --git a/main/gnome-panel/APKBUILD b/main/gnome-panel/APKBUILD new file mode 100644 index 0000000000..92db6be88f --- /dev/null +++ b/main/gnome-panel/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=gnome-panel +pkgver=2.32.1 +pkgrel=9 +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" +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 + rm "$pkgdir"/usr/lib/*.la +} + +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 0000000000..06060f9059 --- /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 0000000000..06060f9059 --- /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 0000000000..96aa7274d4 --- /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 |