diff options
author | root <root@rshg054.dnsready.net> | 2012-04-27 00:01:30 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-27 00:01:30 +0000 |
commit | 5233daa5825f00ccf0722ef9733ea6b3bbd44bc8 (patch) | |
tree | 9efe4d061ff3f921e97518a8bc84d504bc88e6fc /staging/gedit | |
parent | 4a6f4c864badccdbf9756bc45218273796fa6d72 (diff) |
Fri Apr 27 00:01:30 UTC 2012
Diffstat (limited to 'staging/gedit')
-rw-r--r-- | staging/gedit/PKGBUILD | 32 | ||||
-rw-r--r-- | staging/gedit/gedit.install | 18 |
2 files changed, 50 insertions, 0 deletions
diff --git a/staging/gedit/PKGBUILD b/staging/gedit/PKGBUILD new file mode 100644 index 000000000..33e67cf65 --- /dev/null +++ b/staging/gedit/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 157212 2012-04-26 03:41:42Z allan $ +# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> +# Contributor: Jan de Groot <jgc@archlinux.org> + +pkgname=gedit +pkgver=3.4.1 +pkgrel=2 +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=('9b1f0164d6c6bc08e391efde7e6a2aa9290a65bda543fe3a7adc6ef73b722a64') + +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/staging/gedit/gedit.install b/staging/gedit/gedit.install new file mode 100644 index 000000000..606920688 --- /dev/null +++ b/staging/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 +} |