From c3ff6b4da8966c22dcbf0f5d8a957b875242789f Mon Sep 17 00:00:00 2001 From: root Date: Thu, 4 Oct 2012 01:23:34 -0700 Subject: Thu Oct 4 01:23:34 PDT 2012 --- gnome-unstable/gedit/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ gnome-unstable/gedit/gedit.install | 18 ++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 gnome-unstable/gedit/PKGBUILD create mode 100644 gnome-unstable/gedit/gedit.install (limited to 'gnome-unstable/gedit') diff --git a/gnome-unstable/gedit/PKGBUILD b/gnome-unstable/gedit/PKGBUILD new file mode 100644 index 000000000..348b60ec7 --- /dev/null +++ b/gnome-unstable/gedit/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 167879 2012-10-03 15:15:10Z jgc $ +# Maintainer: Jan Alexander Steffens (heftig) +# Contributor: Jan de Groot + +pkgname=gedit +pkgver=3.6.0 +pkgrel=1 +pkgdesc="A text editor for GNOME" +arch=('i686' 'x86_64') +license=('GPL') +depends=('gtksourceview3' 'gsettings-desktop-schemas' 'libpeas' 'enchant' 'iso-codes' 'libsm' 'desktop-file-utils' 'python2-gobject' 'dconf') +makedepends=('yelp-tools' 'intltool') +groups=('gnome-extra') +options=('!libtool' '!emptydirs') +url="http://www.gnome.org" +install=gedit.install +source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz) +sha256sums=('2043aaa61708222f476dd1c83e43bd17c67a341b30a4baa6466a60bbfb6d9471') + +build() { + cd $pkgname-$pkgver + PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ + --sysconfdir=/etc --localstatedir=/var \ + --libexecdir=/usr/lib --disable-updater --disable-schemas-compile \ + --enable-python + make +} + +package(){ + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/gnome-unstable/gedit/gedit.install b/gnome-unstable/gedit/gedit.install new file mode 100644 index 000000000..606920688 --- /dev/null +++ b/gnome-unstable/gedit/gedit.install @@ -0,0 +1,18 @@ +post_install() { + glib-compile-schemas /usr/share/glib-2.0/schemas + update-desktop-database -q +} + +pre_upgrade() { + if [ -f /usr/share/gconf/schemas/gedit.schemas ]; then + gconfpkg --uninstall gedit + fi +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} -- cgit v1.2.3-54-g00ecf