diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-01-23 12:41:54 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-01-23 12:41:54 -0600 |
commit | fd69909c5c20889b09d2b62aca6bb552caaf66e8 (patch) | |
tree | d0a0afef358eb173c29361759cbe7cc4ecccf8d1 | |
parent | 558e7c4bc0fac83acbc438b2c4c8e86b8c262953 (diff) | |
download | aports-fd69909c5c20889b09d2b62aca6bb552caaf66e8.tar.bz2 aports-fd69909c5c20889b09d2b62aca6bb552caaf66e8.tar.xz |
testing/gnome-screensaver: new aport
4 files changed, 85 insertions, 0 deletions
diff --git a/testing/gnome-screensaver/APKBUILD b/testing/gnome-screensaver/APKBUILD new file mode 100644 index 0000000000..2e9e63b48b --- /dev/null +++ b/testing/gnome-screensaver/APKBUILD @@ -0,0 +1,64 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=gnome-screensaver +pkgver=2.30.2 +pkgrel=0 +pkgdesc="GNOME screensaver collection" +url="http://www.gnome.org" +arch="all" +license="GPL" +depends= +depends_dev="gtk+-dev + gconf-dev + libx11-dev + gnome-doc-utils + libgnome-dev + libwnck-dev + libnotify-dev + libunique-dev + + gnome-desktop-dev + gnome-menus-dev + + libxcursor-dev + libxcomposite-dev + libxi-dev + libxau-dev + libxdmcp-dev + libxext-dev + libxcb-dev + libxrender-dev + libxrandr-dev" +makedepends="$depends_dev intltool gobject-introspection" +install="$pkgname.post-install $pkgname.pre-deinstall $pkgname.post-upgrade" +subpackages= +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-applets \ + --disable-scrollkeeper || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + + export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="0fbe6e610e6847ac1e69d49b1e1f0582 gnome-screensaver-2.30.2.tar.bz2" diff --git a/testing/gnome-screensaver/gnome-screensaver.post-install b/testing/gnome-screensaver/gnome-screensaver.post-install new file mode 100644 index 0000000000..49ca99c158 --- /dev/null +++ b/testing/gnome-screensaver/gnome-screensaver.post-install @@ -0,0 +1,7 @@ +#!/bin/sh + +for i in gnome-screensaver.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-screensaver/gnome-screensaver.post-upgrade b/testing/gnome-screensaver/gnome-screensaver.post-upgrade new file mode 100644 index 0000000000..49ca99c158 --- /dev/null +++ b/testing/gnome-screensaver/gnome-screensaver.post-upgrade @@ -0,0 +1,7 @@ +#!/bin/sh + +for i in gnome-screensaver.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-screensaver/gnome-screensaver.pre-deinstall b/testing/gnome-screensaver/gnome-screensaver.pre-deinstall new file mode 100644 index 0000000000..1aebff8243 --- /dev/null +++ b/testing/gnome-screensaver/gnome-screensaver.pre-deinstall @@ -0,0 +1,7 @@ +#!/bin/sh + +for i in gnome-screensaver.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 |