SHARE
TWEET

18.04.0 Kate-root PKGBUILD

a guest Apr 24th, 2018 228 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Contributor: Felix Yan <felixonmars@archlinux.org>
  3. # Contributor: Antonio Rojas <arojas@archlinux.org>
  4. # Contributor: Andrea Scarpino <andrea@archlinux.org>
  5.  
  6. pkgbase=kate-root
  7. pkgname=('kwrite-root'
  8.          'kate-root')
  9. pkgver=18.04.0
  10. pkgrel=1
  11. arch=('x86_64')
  12. license=('GPL' 'LGPL' 'FDL')
  13. makedepends=('extra-cmake-modules' 'kdoctools' 'plasma-framework' 'knewstuff' 'ktexteditor'
  14.              'threadweaver' 'kitemmodels' 'kactivities')
  15. source=("https://download.kde.org/stable/applications/${pkgver}/src/${pkgbase/-*/}-${pkgver}.tar.xz"{,.sig}
  16.         "https://gitlab.com/Megver83/kdebase-root-patches/raw/master/0001-Defuse-root-block.patch"{,.sig})
  17. sha512sums=('2962b64a123be966017408bf02d3a92d6814ff76c759e8ea6f98e58c2cfa92086c290aea23f800dfa05ecf092c421ad7225161f757c98d409d40adce61aebc93'
  18.             'SKIP'
  19.             'a6d1a2bf6664ac72dc9c9434c64a228eb91320d405e6cd4b4dd6b24d8ff8d0675407c0e0f76e76d3e2758238f22fe00e0cd96caa9d24bd9fa39950cafdc03fa8'
  20.             'SKIP')
  21. validpgpkeys=('CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7' # Albert Astals Cid <aacid@kde.org>
  22.               'F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87' # Christoph Feck <cfeck@kde.org>
  23.               '6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78' # David P.
  24. )
  25.  
  26. prepare() {
  27.   mkdir -p build
  28.   cd $srcdir/${pkgbase/-*/}-${pkgver}
  29.   patch -p1 -i $srcdir/0001-Defuse-root-block.patch
  30. }
  31.  
  32. build() {
  33.   cd build
  34.   cmake ../${pkgbase/-*/}-${pkgver} \
  35.     -DCMAKE_INSTALL_PREFIX=/usr \
  36.     -DCMAKE_INSTALL_LIBDIR=lib \
  37.     -DBUILD_TESTING=OFF
  38.   make
  39. }
  40.  
  41. package_kwrite-root() {
  42.   pkgdesc="Text Editor, patched to be able to run as root"
  43.   url="https://www.kde.org/applications/utilities/kwrite/"
  44.   depends=('ktexteditor' 'kactivities' 'hicolor-icon-theme')
  45.   replaces=('kdebase-kwrite' 'kwrite')
  46.   conflicts=('kdebase-kwrite' 'kwrite')
  47.   provides=('kdebase-kwrite' 'kwrite')
  48.  
  49.   cd build
  50.   make DESTDIR="${pkgdir}" install
  51.  
  52.   find "$pkgdir" -type f -name '*kate*' -exec rm {} \;
  53.   rm -r "$pkgdir"/usr/lib/qt/plugins/ktexteditor \
  54.         "$pkgdir"/usr/share/doc/HTML/*/{kate,katepart} \
  55.         "$pkgdir"/usr/share/katexmltools \
  56.         "$pkgdir"/usr/share/locale/*/LC_MESSAGES/{kterustcompletion,tabswitcherplugin,ktexteditorpreviewplugin}.mo \
  57.         "$pkgdir"/usr/share/plasma/plasmoids
  58. }
  59.  
  60. package_kate-root() {
  61.   pkgdesc="Advanced Text Editor, patched to be able to run as root"
  62.   url="https://www.kde.org/applications/utilities/kate/"
  63.   depends=('knewstuff' 'ktexteditor' 'threadweaver' 'kitemmodels' 'kactivities' 'hicolor-icon-theme')
  64.   replaces=('kdesdk-kate' 'kate')
  65.   conflicts=('kdesdk-kate' 'kate')
  66.   provides=('kdesdk-kate' 'kate')
  67.   optdepends=('konsole: open a terminal in Kate')
  68.  
  69.   cd build
  70.   make DESTDIR="${pkgdir}" install
  71.  
  72.   find "$pkgdir" -type f -name '*kwrite*' -exec rm {} \;
  73.   rm -r "$pkgdir"/usr/share/doc/HTML/*/kwrite
  74. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top