summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0124d0e5dcc2f179e49e9739168ee36398283a9e (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
# Maintainer Musikolo <musikolo {at} hotmail [dot] com>

pkgname=plasma5-applets-system-panel
pkgver=1.6.0
pkgdesc="Plasma5 applet that displays a panel with a set of system actions"
pkgrel=2
arch=(i686 x86_64)
url="https://github.com/Musikolo/plasma5-applets-system-panel"
license=(GPL3)
groups=('kde' 'plasmoid')
makedepends=(cmake extra-cmake-modules git)
depends=(plasma-workspace)
options=()
source=("git+https://github.com/Musikolo/${pkgname}.git")
md5sums=('SKIP')

prepare() {
  mkdir -p build

  msg2 "Switching to tag v${pkgver}..."
  cd "${pkgname}"
  git checkout -q tags/v${pkgver}
}

build() {
  cd build
  cmake -DCMAKE_INSTALL_PREFIX="`kf5-config --prefix`" -DCMAKE_BUILD_TYPE=Release -DLIB_INSTALL_DIR=lib -DKDE_INSTALL_USE_QT_SYS_PATHS=ON ../${pkgname}/src
  make
}

package() {
  pushd build
  make DESTDIR="${pkgdir}" install
  popd

  cd "${pkgname}"
  _licenses_dir="${pkgdir}`kf5-config --prefix`/share/licenses/${pkgname}"
  install -D AUTHORS "${_licenses_dir}/AUTHORS"
  install -D ChangeLog "${_licenses_dir}/ChangeLog"
  install -D LICENSE "${_licenses_dir}/LICENSE"
  install -D TODO "${_licenses_dir}/TODO"
}