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

Christian Hesse eworm at archlinux.org
Thu Apr 28 08:34:55 UTC 2016


    Date: Thursday, April 28, 2016 @ 10:34:54
  Author: eworm
Revision: 172391

upgpkg: cinepaint 1:1.0.4-5

* Hooks! (Remove install file...)
* fix reference to $srcdir

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

-------------------+
 PKGBUILD          |   14 ++++++++------
 cinepaint.install |   11 -----------
 2 files changed, 8 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-04-28 07:57:42 UTC (rev 172390)
+++ PKGBUILD	2016-04-28 08:34:54 UTC (rev 172391)
@@ -5,7 +5,7 @@
 pkgname=cinepaint
 _realver=1.0-4
 pkgver=${_realver/-/.}
-pkgrel=4
+pkgrel=5
 epoch=1
 pkgdesc="Sophisticated graphics manipulation programm supporting > 8bit pictures"
 arch=('i686' 'x86_64')
@@ -16,7 +16,6 @@
 optdepends=('python2: for python plug-ins'
             'gutenprint: for print plug-ins'
             'ghostscript: for pdf plug-ins')
-install=cinepaint.install
 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$_realver.tar.gz
         LICENSE cinepaint-libpng15.patch)
 sha1sums=('2049958784d211cc0be8f41f3473433479ba71fe'
@@ -40,6 +39,13 @@
   find . -name Makefile -exec sed -i 's/-Wl,,/-Wl,/g' {} +
 
   make
+
+  sed -i -e "s|-I$srcdir/cinepaint||" \
+    -e "s|-I$srcdir/cinepaint-${_realver}/lib||" \
+    -e "/libcinepaint.la/d" \
+    -e "s|$srcdir/cinepaint-${_realver}/lib/.libs/\$dlname||" \
+    "cinepainttool"
+  sed -i "s/cinepaint.png/cinepaint/" "cinepaint.desktop"
 }
 
 package() {
@@ -46,9 +52,5 @@
   cd $pkgname-$_realver
   make DESTDIR="$pkgdir" install
 
-  sed -i -e "s|-I$srcdir/cinepaint||" -e "s|-I$srcdir/cinepaint/lib||" \
-    -e "/libcinepaint.la/d" -e "s|$srcdir/cinepaint/lib/.libs/\$dlname||" \
-    "$pkgdir/usr/bin/cinepainttool"
-  sed -i "s/cinepaint.png/cinepaint/" "$pkgdir/usr/share/applications/cinepaint.desktop"
   install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

Deleted: cinepaint.install
===================================================================
--- cinepaint.install	2016-04-28 07:57:42 UTC (rev 172390)
+++ cinepaint.install	2016-04-28 08:34:54 UTC (rev 172391)
@@ -1,11 +0,0 @@
-post_install() {
-  update-desktop-database -q
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-post_remove() {
-  update-desktop-database -q
-}



More information about the arch-commits mailing list