Guest User

Dolphin-root 17.12.3 pkgbuild

a guest
Mar 19th, 2018
394
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Contributor: Antonio Rojas <arojas@archlinux,org>
  3. # Contributor: Felix Yan <felixonmars@archlinux.org>
  4. # Contributor: Andrea Scarpino <andrea@archlinux.org>
  5. # Contributor: Pierre Schmitz <pierre@archlinux.de>
  6.  
  7. _pkgname=dolphin
  8. pkgname=dolphin-root
  9. pkgver=17.12.3
  10. pkgrel=1
  11. pkgdesc="File Manager, patched to be able to run as root"
  12. arch=('armv7h' 'i686' 'x86_64')
  13. url="https://kde.org/applications/system/dolphin/"
  14. license=(LGPL)
  15. depends=(baloo-widgets knewstuff kio-extras kuiserver kcmutils kparts kinit)
  16. makedepends=(extra-cmake-modules kdoctools python)
  17. optdepends=('kde-cli-tools: for editing file type options' 'ffmpegthumbs: video thumbnails' 'kde-thumbnailer-odf: ODF thumbnails'
  18. 'ruby: installing new service menus from KDE Store' 'kdegraphics-thumbnailers: PDF and PS thumbnails' 'konsole: terminal panel')
  19. conflicts=('kdebase-dolphin<15.08' 'dolphin')
  20. provides=(dolphin)
  21. replaces=(kdebase-dolphin)
  22. source=("https://download.kde.org/stable/applications/$pkgver/src/${_pkgname}-$pkgver.tar.xz"{,.sig}
  23. "https://gitlab.com/Megver83/kdebase-root-patches/raw/master/0001-Revert-Disallow-executing-Dolphin-as-root-on-Linux.patch"{,.sig})
  24. sha512sums=('44cf8baaeead69dd5529ce7da96d78f507029fa47ac9ac50de9d77cb15335dd0b0e0c916f2cdd0d5cadc465e461115dbfd02c51af38d03da985d66bd22456136'
  25. 'SKIP'
  26. 'f96ce74603d868785cece5cec4a7dc57dd1b50c9423604382065235c8930c5679496cfb9e08b2956520e8205468caf2e36cdb0ad18738d3bf75fc5dfdba114ed'
  27. 'SKIP')
  28. validpgpkeys=('CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7' # Albert Astals Cid <aacid@kde.org>
  29. 'F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87' # Christoph Feck <cfeck@kde.org>
  30. '6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78' # David P.
  31. )
  32.  
  33. prepare() {
  34. mkdir -p build
  35. cd $srcdir/${_pkgname}-$pkgver
  36. patch -p1 -i $srcdir/0001-Revert-Disallow-executing-Dolphin-as-root-on-Linux.patch
  37. }
  38.  
  39. build() {
  40. cd build
  41. cmake ../${_pkgname}-$pkgver \
  42. -DCMAKE_BUILD_TYPE=Release \
  43. -DCMAKE_INSTALL_PREFIX=/usr \
  44. -DKDE_INSTALL_LIBDIR=lib \
  45. -DBUILD_TESTING=OFF
  46. make
  47. }
  48.  
  49. package() {
  50. cd build
  51. make DESTDIR="$pkgdir" install
  52. }
RAW Paste Data