[arch-commits] Commit in krename/repos (6 files)

Antonio Rojas arojas at archlinux.org
Fri Jul 14 22:53:18 UTC 2017


    Date: Friday, July 14, 2017 @ 22:53:18
  Author: arojas
Revision: 245143

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  krename/repos/community-staging-i686/
  krename/repos/community-staging-i686/PKGBUILD
    (from rev 245142, krename/trunk/PKGBUILD)
  krename/repos/community-staging-i686/krename-gcc6.patch
    (from rev 245142, krename/trunk/krename-gcc6.patch)
  krename/repos/community-staging-x86_64/
  krename/repos/community-staging-x86_64/PKGBUILD
    (from rev 245142, krename/trunk/PKGBUILD)
  krename/repos/community-staging-x86_64/krename-gcc6.patch
    (from rev 245142, krename/trunk/krename-gcc6.patch)

---------------------------------------------+
 community-staging-i686/PKGBUILD             |   37 ++++++++++++++++++++++++++
 community-staging-i686/krename-gcc6.patch   |   11 +++++++
 community-staging-x86_64/PKGBUILD           |   37 ++++++++++++++++++++++++++
 community-staging-x86_64/krename-gcc6.patch |   11 +++++++
 4 files changed, 96 insertions(+)

Copied: krename/repos/community-staging-i686/PKGBUILD (from rev 245142, krename/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2017-07-14 22:53:18 UTC (rev 245143)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=krename
+pkgver=4.0.9
+pkgrel=8
+pkgdesc="A very powerful batch file renamer for KDE"
+arch=('i686' 'x86_64')
+url="http://www.krename.net"
+license=('GPL')
+depends=('kdebase-runtime' 'taglib')
+makedepends=('cmake' 'automoc4')
+options=('libtool')
+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
+  cmake ../${pkgname}-${pkgver} \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-I/usr/include/freetype2"
+  sed -i 's|/share/locale|/share/locale/kde4|' po/cmake_install.cmake
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+}

Copied: krename/repos/community-staging-i686/krename-gcc6.patch (from rev 245142, krename/trunk/krename-gcc6.patch)
===================================================================
--- community-staging-i686/krename-gcc6.patch	                        (rev 0)
+++ community-staging-i686/krename-gcc6.patch	2017-07-14 22:53:18 UTC (rev 245143)
@@ -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

Copied: krename/repos/community-staging-x86_64/PKGBUILD (from rev 245142, krename/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2017-07-14 22:53:18 UTC (rev 245143)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=krename
+pkgver=4.0.9
+pkgrel=8
+pkgdesc="A very powerful batch file renamer for KDE"
+arch=('i686' 'x86_64')
+url="http://www.krename.net"
+license=('GPL')
+depends=('kdebase-runtime' 'taglib')
+makedepends=('cmake' 'automoc4')
+options=('libtool')
+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
+  cmake ../${pkgname}-${pkgver} \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-I/usr/include/freetype2"
+  sed -i 's|/share/locale|/share/locale/kde4|' po/cmake_install.cmake
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+}

Copied: krename/repos/community-staging-x86_64/krename-gcc6.patch (from rev 245142, krename/trunk/krename-gcc6.patch)
===================================================================
--- community-staging-x86_64/krename-gcc6.patch	                        (rev 0)
+++ community-staging-x86_64/krename-gcc6.patch	2017-07-14 22:53:18 UTC (rev 245143)
@@ -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



More information about the arch-commits mailing list