aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-01-22 22:31:02 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-01-22 22:31:02 -0600
commitfde289a60c1fdc8611bd3fb12a442e9a349c82d5 (patch)
tree87206edb6b389a9f262f4db311d1957842b2611d
parent63f8d34fa97bfb356d449cb4955cd31908d3bfef (diff)
downloadaports-fde289a60c1fdc8611bd3fb12a442e9a349c82d5.tar.bz2
aports-fde289a60c1fdc8611bd3fb12a442e9a349c82d5.tar.xz
testing/gnome-desktop: new aport
-rw-r--r--testing/gnome-desktop/APKBUILD44
-rw-r--r--testing/gnome-desktop/gnome-desktop.post-install7
-rw-r--r--testing/gnome-desktop/gnome-desktop.post-upgrade7
-rw-r--r--testing/gnome-desktop/gnome-desktop.pre-deinstall7
4 files changed, 65 insertions, 0 deletions
diff --git a/testing/gnome-desktop/APKBUILD b/testing/gnome-desktop/APKBUILD
new file mode 100644
index 0000000000..37a21855f8
--- /dev/null
+++ b/testing/gnome-desktop/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=gnome-desktop
+pkgver=2.32.1
+pkgrel=0
+pkgdesc="GNOME deskop framework"
+url="http://projects.gnome.org/gnome-panel"
+arch="all"
+license="GPL"
+depends="python"
+depends_dev="gtk+-dev gconf-dev libx11-dev gnome-doc-utils libgnome-dev py-gtk python-dev libxrandr-dev"
+makedepends="$depends_dev intltool"
+install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade"
+subpackages="$pkgname-doc $pkgname-dev"
+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 \
+ --with-gnome-distributor=Alpine \
+ --disable-scrollkeeper || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+
+ export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="5c80d628a240eb9d9ff78913b31f2f67 gnome-desktop-2.32.1.tar.bz2"
diff --git a/testing/gnome-desktop/gnome-desktop.post-install b/testing/gnome-desktop/gnome-desktop.post-install
new file mode 100644
index 0000000000..7da0a45406
--- /dev/null
+++ b/testing/gnome-desktop/gnome-desktop.post-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in gnome-terminal.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
diff --git a/testing/gnome-desktop/gnome-desktop.post-upgrade b/testing/gnome-desktop/gnome-desktop.post-upgrade
new file mode 100644
index 0000000000..7da0a45406
--- /dev/null
+++ b/testing/gnome-desktop/gnome-desktop.post-upgrade
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in gnome-terminal.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
diff --git a/testing/gnome-desktop/gnome-desktop.pre-deinstall b/testing/gnome-desktop/gnome-desktop.pre-deinstall
new file mode 100644
index 0000000000..b888a3f330
--- /dev/null
+++ b/testing/gnome-desktop/gnome-desktop.pre-deinstall
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in gnome-terminal.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