summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLuca Weiss2017-01-19 16:23:42 +0100
committerLuca Weiss2017-01-19 16:23:42 +0100
commit04eca67e318dadd4b4a40e4883741c5bed818e43 (patch)
treece0f5378960063caac9fff7fe1f6f3713c0772ef /PKGBUILD
downloadaur-04eca67e318dadd4b4a40e4883741c5bed818e43.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8db4b7e4f15
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>
+
+_pkgname=MycroftPlasmoid
+pkgname=plasma5-applets-mycroft-git
+pkgver=r7.08caedd
+pkgrel=1
+pkgdesc="Mycroft Ai Plasmoid / Widget for KDE Plasma 5 Desktop"
+arch=("x86_64" "i686")
+url="https://github.com/AIIX/MycroftPlasmoid"
+license=('GPL3')
+depends=('qt5-websockets' 'qt5-quickcontrols2') # 'mycroft-core')
+makedepends=('git')
+provides=("plasma5-applets-mycroft")
+conflicts=("plasma5-applets-mycroft")
+install=$pkgname.install
+source=('git+https://github.com/AIIX/MycroftPlasmoid.git'
+ 'mycroft-location.patch')
+sha512sums=('SKIP'
+ '42076d6fb29c002dcda804263ce40fa621a3de4487fecd433bc4acb42564c46138cc409c58e450ef962bb720e98f7ad73eefd1176e0d0b7c68bb7161da24e6de')
+
+pkgver() {
+ cd $srcdir/$_pkgname
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+#prepare() {
+# cd $srcdir/$_pkgname
+# patch -p1 < $srcdir/mycroft-location.patch
+#}
+
+build() {
+ cd $srcdir/$_pkgname
+ mkdir -p build && cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+ make
+}
+
+#check() {
+# cd "$srcdir/${pkgname%-VCS}"
+# make -k check
+#}
+
+package() {
+ cd $srcdir/$_pkgname/build
+ make DESTDIR="$pkgdir/" install
+ chmod +x $pkgdir/usr/share/plasma/plasmoids/org.kde.plasma.projectmycroftplasmoid/contents/code/{startservice,stopservice}.sh
+ sed -i 's:cd /home/$USER/mycroft-core*/:/usr/share/mycroft-core/:' $pkgdir/usr/share/plasma/plasmoids/org.kde.plasma.projectmycroftplasmoid/contents/code/startservice.sh
+ sed -i 's:cd /home/$USER/mycroft-core*/:/usr/share/mycroft-core/:' $pkgdir/usr/share/plasma/plasmoids/org.kde.plasma.projectmycroftplasmoid/contents/code/stopservice.sh
+}