[arch-commits] Commit in leafpad/trunk (PKGBUILD leafpad.install)

2016-05-03 Thread Antonio Rojas
Date: Wednesday, May 4, 2016 @ 01:20:52
  Author: arojas
Revision: 266840

Hooks

Modified:
  leafpad/trunk/PKGBUILD
Deleted:
  leafpad/trunk/leafpad.install

-+
 PKGBUILD|5 ++---
 leafpad.install |   12 
 2 files changed, 2 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2016-05-03 23:17:42 UTC (rev 266839)
+++ PKGBUILD2016-05-03 23:20:52 UTC (rev 266840)
@@ -4,14 +4,13 @@
 
 pkgname=leafpad
 pkgver=0.8.18.1
-pkgrel=4
+pkgrel=5
 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')
+depends=('gtk2')
 makedepends=('intltool')
-install=leafpad.install
 
source=(http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz)
 md5sums=('254a72fc67505e3aa52884c729cd7b97')
 

Deleted: leafpad.install
===
--- leafpad.install 2016-05-03 23:17:42 UTC (rev 266839)
+++ leafpad.install 2016-05-03 23:20:52 UTC (rev 266840)
@@ -1,12 +0,0 @@
-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
-}


[arch-commits] Commit in leafpad/trunk (PKGBUILD leafpad.install)

2011-02-19 Thread Ionut Biru
Date: Saturday, February 19, 2011 @ 11:41:59
  Author: ibiru
Revision: 110473

upgpkg: leafpad 0.8.18.1-2
execute update-desktop-database in install script FS#22941

Modified:
  leafpad/trunk/PKGBUILD
  leafpad/trunk/leafpad.install

-+
 PKGBUILD|8 ++--
 leafpad.install |1 +
 2 files changed, 7 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2011-02-19 16:39:34 UTC (rev 110472)
+++ PKGBUILD2011-02-19 16:41:59 UTC (rev 110473)
@@ -4,12 +4,12 @@
 
 pkgname=leafpad
 pkgver=0.8.18.1
-pkgrel=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')
+depends=('gtk2' 'desktop-file-utils')
 makedepends=('intltool')
 install=leafpad.install
 
source=(http://download.savannah.gnu.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz)
@@ -19,6 +19,10 @@
   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"
 }

Modified: leafpad.install
===
--- leafpad.install 2011-02-19 16:39:34 UTC (rev 110472)
+++ leafpad.install 2011-02-19 16:41:59 UTC (rev 110473)
@@ -1,4 +1,5 @@
 post_install() {
+update-desktop-database -q
 gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
 }