From 265129e417f71bf58cf3c6438f397aa1dda9b3be Mon Sep 17 00:00:00 2001 From: Francesco Marinucci Date: Sun, 21 Oct 2018 12:51:05 +0200 Subject: [PATCH] [testing] krename: update to 5.0.0, removed references to kde-runtime --- krename/PKGBUILD | 44 +++++++++++++++++--------------------- krename/krename-gcc6.patch | 11 ---------- krename/krename.install | 11 ---------- 3 files changed, 20 insertions(+), 46 deletions(-) delete mode 100644 krename/krename-gcc6.patch delete mode 100644 krename/krename.install diff --git a/krename/PKGBUILD b/krename/PKGBUILD index a27f997de..a20bf5596 100644 --- a/krename/PKGBUILD +++ b/krename/PKGBUILD @@ -1,37 +1,33 @@ +# Contributions from ArchLinux https://git.archlinux.org/svntogit/community.git/plain/trunk/PKGBUILD?h=packages/krename + pkgname=krename -pkgver=4.0.9 -pkgrel=7 -pkgdesc="A very powerfull batch file renamer for KDE" -arch=('x86_64') +pkgver=5.0.0 +pkgrel=1 +pkgdesc="A very powerful batch file renamer" +arch=(x86_64) url="http://www.krename.net" -license=('GPL') -depends=('exiv2' 'kde-runtime' 'taglib' 'xdg-utils') -makedepends=('cmake' 'automoc4') -options=('libtool') -categories=('utils') -install=$pkgname.install -source=("http://sourceforge.net/projects/krename/files/KDE4%20krename-stable/$pkgver/$pkgname-$pkgver.tar.bz2" - krename-gcc6.patch) -md5sums=('21b2daeee6d81155bd3c0fa2bc1b9a63' - 'ac1fe8bc93a7524a21d28edef168e888') +license=(GPL) +depends=('kio' 'kjs' 'exiv2' 'podofo' 'taglib' 'hicolor-icon-theme') +makedepends=('extra-cmake-modules') +source=(https://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig}) +sha256sums=('0a61761853787fd46b35f3a733cf87cde00de5df631728332a64c38c670bd28c' + 'SKIP') +validpgpkeys=(D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker prepare() { - cd $pkgname-$pkgver - # Fix build with GCC 6 - patch -p1 -i ../krename-gcc6.patch + mkdir -p build } build() { - cd $pkgname-$pkgver - mkdir build cd build - cmake .. -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 + cmake ../$pkgname-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTING=OFF make } package() { - cd $pkgname-$pkgver/build - make DESTDIR=$pkgdir install + cd build + make DESTDIR="$pkgdir" install } diff --git a/krename/krename-gcc6.patch b/krename/krename-gcc6.patch deleted file mode 100644 index b1687926d..000000000 --- a/krename/krename-gcc6.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- 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 diff --git a/krename/krename.install b/krename/krename.install deleted file mode 100644 index 1c0de2e4f..000000000 --- a/krename/krename.install +++ /dev/null @@ -1,11 +0,0 @@ -post_install() { - xdg-icon-resource forceupdate --theme hicolor &> /dev/null -} - -post_upgrade() { - post_install -} - -post_remove() { - post_install -}