summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorDavid P <megver83@parabola.nu>2017-06-01 20:59:44 -0400
committerDavid P <megver83@parabola.nu>2017-06-01 20:59:44 -0400
commitac875f38d2e0054701b78a7b84a4505e6ba90545 (patch)
treeb293220a0da4478244e49956d678d585848e1933 /pcr
parentf37c05d994ed5e63b4f80f5d51beb5301763056d (diff)
downloadabslibre-ac875f38d2e0054701b78a7b84a4505e6ba90545.tar.gz
abslibre-ac875f38d2e0054701b78a7b84a4505e6ba90545.tar.bz2
abslibre-ac875f38d2e0054701b78a7b84a4505e6ba90545.zip
Added dolphin-root and kate-root to [pcr]
Diffstat (limited to 'pcr')
-rw-r--r--pcr/dolphin-root/PKGBUILD50
-rw-r--r--pcr/kate-root/PKGBUILD79
2 files changed, 129 insertions, 0 deletions
diff --git a/pcr/dolphin-root/PKGBUILD b/pcr/dolphin-root/PKGBUILD
new file mode 100644
index 000000000..ff2842993
--- /dev/null
+++ b/pcr/dolphin-root/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# 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-root
+pkgver=17.04.1
+pkgrel=1
+pkgdesc="File Manager, patched to be able to run as root"
+arch=('armv7h' 'i686' 'x86_64')
+url="https://kde.org/applications/system/dolphin/"
+license=(LGPL)
+depends=(baloo-widgets knewstuff kio-extras kuiserver kcmutils)
+makedepends=(extra-cmake-modules kdoctools python)
+optdepends=('kde-cli-tools: for editing file type options' 'ffmpegthumbs: video thumbnails'
+ 'ruby: installing new service menus from KDE Store' 'kdegraphics-thumbnailers: PDF and PS thumbnails' 'konsole: terminal panel')
+conflicts=('kdebase-dolphin<15.08' 'dolphin')
+replaces=(kdebase-dolphin dolphin)
+source=("https://download.kde.org/stable/applications/$pkgver/src/${_pkgname}-$pkgver.tar.xz"{,.sig}
+ "https://gitlab.com/Megver83/kdebase-root-patches/raw/master/0001-Revert-Disallow-executing-Dolphin-as-root-on-Linux.patch"{,.sig})
+sha256sums=('27ae075eeb5811c4a3b2f64edb7316c17ac114bb1fa7ee866cc04def99352be7'
+ 'SKIP'
+ 'a82476fd2b95aab513e7d80fd50b62a361167b9847584a530570bf84758bd76c'
+ 'SKIP')
+validpgpkeys=('CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7' # Albert Astals Cid <aacid@kde.org>
+ '6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78' # David P.
+)
+
+prepare() {
+ mkdir -p build
+ cd $srcdir/${_pkgname}-$pkgver
+ patch -p1 -i $srcdir/0001-Revert-Disallow-executing-Dolphin-as-root-on-Linux.patch
+}
+
+build() {
+ cd build
+ cmake ../${_pkgname}-$pkgver \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DKDE_INSTALL_LIBDIR=lib \
+ -DBUILD_TESTING=OFF
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
diff --git a/pcr/kate-root/PKGBUILD b/pcr/kate-root/PKGBUILD
new file mode 100644
index 000000000..86cef7e4c
--- /dev/null
+++ b/pcr/kate-root/PKGBUILD
@@ -0,0 +1,79 @@
+# Maintainer: David P. <megver83@parabola.nu>
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Antonio Rojas <arojas@archlinux.org>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+
+_pkgbase=kate
+pkgbase=kate-root
+pkgname=('kwrite-root'
+ 'kate-root')
+pkgver=17.04.1
+pkgrel=1
+arch=('armv7h' 'i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'plasma-framework' 'knewstuff' 'ktexteditor'
+ 'threadweaver' 'kitemmodels' 'kactivities')
+source=("https://download.kde.org/stable/applications/${pkgver}/src/${_pkgbase}-${pkgver}.tar.xz"{,.sig}
+ "https://gitlab.com/Megver83/kdebase-root-patches/raw/master/0001-Defuse-root-block.patch"{,.sig})
+sha256sums=('34eee6c384e2c2776c7d0ab65e7217e730cdbdecb82578c9dc90380cb82affd2'
+ 'SKIP'
+ '97926a28409205bff73df7788afcbce5229a60734db26704ffb10535c74bb96c'
+ 'SKIP')
+validpgpkeys=('CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7' # Albert Astals Cid <aacid@kde.org>
+ '6DB9C4B4F0D8C0DC432CF6E4227CA7C556B2BA78' # David P.
+)
+options=(!emptydirs)
+
+prepare() {
+ mkdir -p build
+ cd $srcdir/${_pkgbase}-${pkgver}
+ patch -p1 -i $srcdir/0001-Defuse-root-block.patch
+}
+
+build() {
+ cd build
+ cmake ../${_pkgbase}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DKDE_INSTALL_LIBDIR=lib \
+ -DSYSCONF_INSTALL_DIR=/etc \
+ -DBUILD_TESTING=OFF
+ make
+}
+
+package_kwrite-root() {
+ pkgdesc="Text Editor, patched to be able to run as root"
+ groups=('kde-applications' 'kdebase')
+ url="https://www.kde.org/applications/utilities/kwrite/"
+ depends=('ktexteditor' 'kactivities' 'hicolor-icon-theme')
+ replaces=('kdebase-kwrite' 'kwrite')
+ conflicts=('kdebase-kwrite' 'kwrite')
+ provides=('kdebase-kwrite' 'kwrite')
+
+ cd build
+ make DESTDIR="${pkgdir}" install
+
+ find "$pkgdir" -type f -name '*kate*' -exec rm {} \;
+ rm -r "$pkgdir"/usr/lib/qt/plugins/ktexteditor \
+ "$pkgdir"/usr/share/doc/HTML/*/{kate,katepart} \
+ "$pkgdir"/usr/share/katexmltools \
+ "$pkgdir"/usr/share/locale/*/LC_MESSAGES/{kterustcompletion,tabswitcherplugin}.mo \
+ "$pkgdir"/usr/share/plasma/plasmoids
+}
+
+package_kate-root() {
+ pkgdesc="Advanced Text Editor, patched to be able to run as root"
+ groups=('kde-applications' 'kdebase')
+ url="https://www.kde.org/applications/utilities/kate/"
+ depends=('knewstuff' 'ktexteditor' 'threadweaver' 'kitemmodels' 'kactivities' 'hicolor-icon-theme')
+ replaces=('kdesdk-kate' 'kate')
+ conflicts=('kdesdk-kate' 'kate')
+ provides=('kdesdk-kate' 'kate')
+ optdepends=('konsole: open a terminal in Kate')
+
+ cd build
+ make DESTDIR="${pkgdir}" install
+
+ find "$pkgdir" -type f -name '*kwrite*' -exec rm {} \;
+ rm -r "$pkgdir"/usr/share/doc/HTML/*/kwrite
+}