Date: Saturday, May 7, 2016 @ 14:54:21
  Author: arojas
Revision: 174094

Hooks

Added:
  krename/trunk/krename-gcc6.patch
Modified:
  krename/trunk/PKGBUILD
Deleted:
  krename/trunk/krename.install

--------------------+
 PKGBUILD           |   14 ++++++++++----
 krename-gcc6.patch |   11 +++++++++++
 krename.install    |   11 -----------
 3 files changed, 21 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2016-05-07 12:40:57 UTC (rev 174093)
+++ PKGBUILD    2016-05-07 12:54:21 UTC (rev 174094)
@@ -3,7 +3,7 @@
 
 pkgname=krename
 pkgver=4.0.9
-pkgrel=6
+pkgrel=7
 pkgdesc="A very powerful batch file renamer for KDE"
 arch=('i686' 'x86_64')
 url="http://www.krename.net";
@@ -11,10 +11,16 @@
 depends=('kdebase-runtime' 'taglib')
 makedepends=('cmake' 'automoc4')
 options=('libtool')
-install=krename.install
-source=(http://downloads.sourceforge.net/project/krename/KDE4%20krename-stable/${pkgver}/${pkgname}-${pkgver}.tar.bz2)
-sha1sums=('03886a385a16de4c9bc285d25b9816ea97768c9e')
+source=(http://downloads.sourceforge.net/project/krename/KDE4%20krename-stable/${pkgver}/${pkgname}-${pkgver}.tar.bz2
 krename-gcc6.patch)
+sha1sums=('03886a385a16de4c9bc285d25b9816ea97768c9e'
+          '87fe0f0f1f2d12496cebdb2b235a7476b9f809ea')
 
+prepare() {
+  cd $pkgname-$pkgver
+# Fix build with GCC 6
+  patch -p1 -i ../krename-gcc6.patch
+}
+
 build() {
   mkdir build
   cd build

Added: krename-gcc6.patch
===================================================================
--- krename-gcc6.patch                          (rev 0)
+++ krename-gcc6.patch  2016-05-07 12:54:21 UTC (rev 174094)
@@ -0,0 +1,11 @@
+--- krename-4.0.9/src/batchrenamer.cpp.orig    2016-05-07 12:50:29.243165528 
+0000
++++ krename-4.0.9/src/batchrenamer.cpp 2016-05-07 12:50:52.543081000 +0000
+@@ -402,7 +402,7 @@
+                 break;
+             case eRenameMode_Link:
+                 // In case of link delete created file
+-                job = KIO::file_delete( dstUrl, false );
++                job = KIO::file_delete( dstUrl, NULL );
+                 break;
+             case eRenameMode_Copy: // no undo possible
+                 // TODO: Maybe we should delete the created files

Deleted: krename.install
===================================================================
--- krename.install     2016-05-07 12:40:57 UTC (rev 174093)
+++ krename.install     2016-05-07 12:54:21 UTC (rev 174094)
@@ -1,11 +0,0 @@
-post_install() {
-  xdg-icon-resource forceupdate --theme hicolor &> /dev/null
-}
-
-post_upgrade() {
-  post_install
-}
-
-post_remove() {
-  post_install
-}

Reply via email to