From 4bc61018eec54dbe50e7556ce01d2ef2859b2c9f Mon Sep 17 00:00:00 2001 From: root Date: Thu, 9 Feb 2012 23:14:54 +0000 Subject: Thu Feb 9 23:14:54 UTC 2012 --- community-testing/gnote/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ community-testing/gnote/gnote.install | 21 +++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 community-testing/gnote/PKGBUILD create mode 100644 community-testing/gnote/gnote.install (limited to 'community-testing/gnote') diff --git a/community-testing/gnote/PKGBUILD b/community-testing/gnote/PKGBUILD new file mode 100644 index 000000000..4631e4813 --- /dev/null +++ b/community-testing/gnote/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 64073 2012-02-08 23:53:13Z allan $ +# Maintainer: Ionut Biru +# Contributor: uastasi +pkgname=gnote +pkgver=0.8.2 +pkgrel=2 +pkgdesc="A note taking application." +arch=('i686' 'x86_64') +url="http://live.gnome.org/Gnote" +license=('GPL3') +depends=('gtkmm3' 'libxslt' 'hicolor-icon-theme' 'desktop-file-utils' 'dconf') +makedepends=('intltool' 'gnome-doc-utils' 'boost') +options=('!libtool') +install=gnote.install +source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/0.8/$pkgname-$pkgver.tar.xz) +sha256sums=('7d42b16d6d6751c88f029aff78db7ed1560f2cb727e6cb3f3ef09711e2381992') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libexecdir=/usr/lib/gnote \ + --disable-scrollkeeper \ + --disable-schemas-compile \ + --disable-static + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +} diff --git a/community-testing/gnote/gnote.install b/community-testing/gnote/gnote.install new file mode 100644 index 000000000..0f8eb1012 --- /dev/null +++ b/community-testing/gnote/gnote.install @@ -0,0 +1,21 @@ +pkgname=gnote + +post_install() { + glib-compile-schemas usr/share/glib-2.0/schemas + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} + +pre_upgrade() { + if [ -f usr/share/gconf/schemas/${pkgname}.schemas ]; then + usr/sbin/gconfpkg --uninstall ${pkgname} + fi +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf