summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLuca Weiss2017-03-28 15:15:06 +0200
committerLuca Weiss2017-03-28 15:15:06 +0200
commit8969c7154427f2d0b29707a5f7a7d7aa8e29affe (patch)
tree2eab0cf0976386d1c2eb602f4fae484b8c7486de /PKGBUILD
parent193c144651b7f8ac0756b9283a62e6ace5fa1c75 (diff)
downloadaur-8969c7154427f2d0b29707a5f7a7d7aa8e29affe.tar.gz
Add mycroft-core optdepend
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2108ca05d24..a7dd68cc9cb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgname=plasma-mycroft
pkgname=plasma5-applets-mycroft-git
-pkgver=r6.f6de0ea
+pkgver=r9.e7bae6a
pkgrel=1
pkgdesc="Mycroft Ai Plasmoid / Widget for KDE Plasma 5 Desktop"
arch=("x86_64" "i686")
@@ -10,11 +10,16 @@ url="https://cgit.kde.org/plasma-mycroft.git/"
license=('GPL3')
depends=('qt5-websockets' 'qt5-quickcontrols2')
makedepends=('git' 'cmake' 'extra-cmake-modules' 'plasma-framework' 'python')
+optdepends=('mycroft-core: for using "Installed Using Mycroft Package"')
provides=("plasma5-applets-mycroft")
conflicts=("plasma5-applets-mycroft")
install=$pkgname.install
-source=('git+https://anongit.kde.org/plasma-mycroft.git')
-sha512sums=('SKIP')
+source=('git+https://anongit.kde.org/plasma-mycroft.git'
+ 'pkgstartservice.patch'
+ 'pkgstopservice.patch')
+sha512sums=('SKIP'
+ '2f0c41f27c25aa09c059730331255e6fbebb05cac24440d575476d8fab4983837b6cdb1d0bb35f3884ae1a2294c5873aa38ceb4e3aa1c932d3550178919c4ba0'
+ '3112eecc59ff26ee6e9e2f07e41c5cd6584fa7311084681d0619c15a1c72771e58e411a76cfee56e56c27c886b88dae36312586be27540635fb0dba092eabd76')
pkgver() {
cd $srcdir/$_pkgname
@@ -31,5 +36,7 @@ build() {
package() {
cd $srcdir/$_pkgname/build
make DESTDIR="$pkgdir/" install
+ patch -p0 $pkgdir/usr/share/plasma/plasmoids/org.kde.plasma.mycroftplasmoid/contents/code/pkgstartservice.sh < $srcdir/pkgstartservice.patch
+ patch -p0 $pkgdir/usr/share/plasma/plasmoids/org.kde.plasma.mycroftplasmoid/contents/code/pkgstopservice.sh < $srcdir/pkgstopservice.patch
chmod +x $pkgdir/usr/share/plasma/plasmoids/org.kde.plasma.mycroftplasmoid/contents/code/{startservice,stopservice,pkgstartservice,pkgstopservice}.sh
}