summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c947cf4a784715cda02f81bf660e13c1f8ea308d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Luca Weiss <luca (at) z3ntu (dot) xyz>

_pkgname=mycroft-plasmoid
pkgname=plasma5-applets-mycroft-git
pkgver=r136.9a784bd
pkgrel=1
pkgdesc="Mycroft Ai Plasmoid / Widget for KDE Plasma 5 Desktop"
arch=("x86_64" "i686")
url="https://invent.kde.org/utilities/mycroft-plasmoid"
license=('GPL3')
depends=('qt5-websockets' 'qt5-quickcontrols2' 'mycroft-gui-git')
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://invent.kde.org/utilities/mycroft-plasmoid.git')
sha512sums=('SKIP')

pkgver() {
  cd $srcdir/$_pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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
}

package() {
  cd $srcdir/$_pkgname/build
  make DESTDIR="$pkgdir/" install
}