From 217a7715291ceb935900b71bde082023bc441290 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Mar 2012 00:01:30 +0000 Subject: Tue Mar 13 00:01:30 UTC 2012 --- gnome-unstable/gnome-color-manager/PKGBUILD | 35 ++++++++++++++++++++++ .../gnome-color-manager.install | 19 ++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 gnome-unstable/gnome-color-manager/PKGBUILD create mode 100644 gnome-unstable/gnome-color-manager/gnome-color-manager.install (limited to 'gnome-unstable/gnome-color-manager') diff --git a/gnome-unstable/gnome-color-manager/PKGBUILD b/gnome-unstable/gnome-color-manager/PKGBUILD new file mode 100644 index 000000000..83a2819fa --- /dev/null +++ b/gnome-unstable/gnome-color-manager/PKGBUILD @@ -0,0 +1,35 @@ +# $Id: PKGBUILD 152977 2012-03-11 05:08:49Z heftig $ +# Maintainer: Jan Alexander Steffens (heftig) + +pkgname=gnome-color-manager +pkgver=3.3.5 +pkgrel=1 +pkgdesc="Color profile manager for the GNOME desktop" +arch=(i686 x86_64) +url="http://projects.gnome.org/gnome-color-manager/" +license=(GPL2) +depends=('libcanberra' 'vte3' 'exiv2' 'hicolor-icon-theme' 'desktop-file-utils' 'clutter-gtk' + 'mash' 'shared-color-profiles' 'shared-color-targets' 'gnome-desktop') +makedepends=('intltool' 'gtk-doc') +install=gnome-color-manager.install +options=('!libtool' '!emptydirs') +groups=('gnome-extra') +source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz) +sha256sums=('6d3151a073cf8706a241c305851d1b776628efc76bd4d5433fce819b32547596') + +build(){ + cd $pkgname-$pkgver + + # man pages need docbook-sgml, which we don't have + ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ + --libexecdir=/usr/lib/gnome-color-manager --disable-static --disable-man-pages + + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool + + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/gnome-unstable/gnome-color-manager/gnome-color-manager.install b/gnome-unstable/gnome-color-manager/gnome-color-manager.install new file mode 100644 index 000000000..04fda0ddc --- /dev/null +++ b/gnome-unstable/gnome-color-manager/gnome-color-manager.install @@ -0,0 +1,19 @@ +post_install() { + usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + if (( $(vercmp $2 2.90.0) < 0 )); then + usr/sbin/gconfpkg --uninstall gnome-color-manager + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf