summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Kluger2018-04-11 09:36:45 -0400
committerAndy Kluger2018-04-11 09:36:45 -0400
commit6cca25057bbcaf33c30fc025a2edfc9f108e30b4 (patch)
tree0408314de1543723c0ebf6216f2690c647be52ad
downloadaur-6cca25057bbcaf33c30fc025a2edfc9f108e30b4.tar.gz
small modification to dolphin to use meld, rather than kompare
-rw-r--r--.SRCINFO36
-rw-r--r--PKGBUILD49
2 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2465d10eaad
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,36 @@
+pkgbase = dolphin-meld
+ pkgdesc = KDE File Manager, using Meld rather than Kompare
+ pkgver = 17.12.3
+ pkgrel = 1
+ url = https://kde.org/applications/system/dolphin/
+ arch = x86_64
+ groups = kde-applications
+ groups = kdebase
+ license = LGPL
+ makedepends = extra-cmake-modules
+ makedepends = kdoctools
+ makedepends = python
+ depends = baloo-widgets
+ depends = knewstuff
+ depends = kio-extras
+ depends = kuiserver
+ depends = kcmutils
+ depends = kparts
+ depends = kinit
+ optdepends = kde-cli-tools: for editing file type options
+ optdepends = ffmpegthumbs: video thumbnails
+ optdepends = meld: file comparisons
+ optdepends = ruby: installing new service menus from KDE Store
+ optdepends = kdegraphics-thumbnailers: PDF and PS thumbnails
+ optdepends = konsole: terminal panel
+ provides = dolphin=17.12.3
+ conflicts = dolphin=17.12.3
+ source = https://download.kde.org/stable/applications/17.12.3/src/dolphin-17.12.3.tar.xz
+ source = https://download.kde.org/stable/applications/17.12.3/src/dolphin-17.12.3.tar.xz.sig
+ validpgpkeys = CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7
+ validpgpkeys = F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87
+ sha256sums = 40dc96fa05cf6a09c49329cd69c9f1079b4ddb57592c9ff0e957eec6e761a439
+ sha256sums = SKIP
+
+pkgname = dolphin-meld
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..927e471a511
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Andy Kluger <https://t.me/andykluger>
+# Contributor: Antonio Rojas <arojas@archlinux,org>
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+
+_pkgname=dolphin
+pkgname=dolphin-meld
+pkgver=17.12.3
+pkgrel=1
+pkgdesc="KDE File Manager, using Meld rather than Kompare"
+arch=(x86_64)
+url="https://kde.org/applications/system/dolphin/"
+license=(LGPL)
+provides=("$_pkgname=$pkgver")
+conflicts=("$_pkgname=$pkgver")
+depends=(baloo-widgets knewstuff kio-extras kuiserver kcmutils kparts kinit)
+makedepends=(extra-cmake-modules kdoctools python)
+optdepends=('kde-cli-tools: for editing file type options' 'ffmpegthumbs: video thumbnails'
+ 'meld: file comparisons'
+ 'ruby: installing new service menus from KDE Store' 'kdegraphics-thumbnailers: PDF and PS thumbnails' 'konsole: terminal panel')
+groups=(kde-applications kdebase)
+source=("https://download.kde.org/stable/applications/$pkgver/src/$_pkgname-$pkgver.tar.xz"{,.sig})
+sha256sums=('40dc96fa05cf6a09c49329cd69c9f1079b4ddb57592c9ff0e957eec6e761a439'
+ 'SKIP')
+validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
+ F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>
+
+prepare() {
+ mkdir -p build
+ cd $_pkgname-$pkgver/src
+ sed -i 's/kompare -c/meld/g' dolphinmainwindow.cpp
+ sed -i 's/findExecutable(QStringLiteral("kompare")).isEmpty()/findExecutable(QStringLiteral("meld")).isEmpty()/g' dolphinmainwindow.cpp
+}
+
+build() {
+ cd build
+ cmake ../$_pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_TESTING=OFF
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}