From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/leafpad/PKGBUILD | 28 ++++++++++++++++++++++++++++ extra/leafpad/leafpad.install | 12 ++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 extra/leafpad/PKGBUILD create mode 100644 extra/leafpad/leafpad.install (limited to 'extra/leafpad') diff --git a/extra/leafpad/PKGBUILD b/extra/leafpad/PKGBUILD new file mode 100644 index 000000000..179133ff4 --- /dev/null +++ b/extra/leafpad/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 110473 2011-02-19 16:41:59Z ibiru $ +# Maintainer: Aaron Griffin +# Contributor: Link Dupont + +pkgname=leafpad +pkgver=0.8.18.1 +pkgrel=2 +pkgdesc="A notepad clone for GTK+ 2.0" +arch=('i686' 'x86_64') +url="http://tarot.freeshell.org/leafpad/" +license=('GPL') +depends=('gtk2' 'desktop-file-utils') +makedepends=('intltool') +install=leafpad.install +source=(http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz) +md5sums=('254a72fc67505e3aa52884c729cd7b97') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr --enable-chooser + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + echo 'StartupNotify=true' >> "${pkgdir}/usr/share/applications/leafpad.desktop" +} diff --git a/extra/leafpad/leafpad.install b/extra/leafpad/leafpad.install new file mode 100644 index 000000000..4d4a283db --- /dev/null +++ b/extra/leafpad/leafpad.install @@ -0,0 +1,12 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} -- cgit v1.2.3-54-g00ecf