summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddaa2d7299d3b6ee181e72cf852dea42feb13c1b (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
36
37
38
39
40
41
42
43
# Maintainer: David Baum <david.baum@naraesk.eu>
pkgname=plasma5-applets-systemd
pkgver=1.2.1
pkgrel=3
pkgdesc="Start and stop systemd services"
arch=('i686' 'x86_64')
url="https://github.com/naraesk/plasma-systemd"
license=('GPL3')
groups=()
depends=('plasma-workspace')
makedepends=('cmake' 'extra-cmake-modules' 'ki18n' 'qt5-base' 'qt5-declarative' 'qt5-tools')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=''
changelog=''
source=("$pkgname-$pkgver.tar.gz::https://github.com/naraesk/plasma-systemd/archive/v1.2.1.tar.gz")
noextract=()
sha256sums=('c24d13faf115a2adfaedb880a2f50e2824d798f108baa29c3804320314267ada')

prepare() {
  cd plasma-systemd-${pkgver}
  mkdir -p build
}

build() {
  cd plasma-systemd-${pkgver}/build
  export QT_SELECT=5
  cmake ../ \
    -DCMAKE_INSTALL_PREFIX=`qtpaths --install-prefix` \
    -DKDE_INSTALL_LIBDIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
    -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd plasma-systemd-${pkgver}/build
  make DESTDIR="${pkgdir}" install
}