summaryrefslogtreecommitdiff
path: root/extra/kactivities4/PKGBUILD
blob: f55bd15e453437806b07b9fc7009be0cf23e4e07 (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
44
45
46
47
48
49
50
51
# $Id: PKGBUILD 217059 2014-07-18 11:26:22Z svenstaro $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgbase=kactivities4
pkgname=('kactivities4' 'libkactivities4')
pkgver=4.13.3
pkgrel=1
arch=('i686' 'x86_64')
url='https://projects.kde.org/projects/kde/kdelibs/kactivities'
license=('GPL' 'FDL')
makedepends=('kdelibs' 'cmake' 'automoc4' 'mesa')
source=("http://download.kde.org/stable/${pkgver}/src/kactivities-${pkgver}.tar.xz")
sha1sums=('54813db8808da63dda7980711ba5d4e01e56d2b0')

prepare() {
  mkdir build
}

build() {
  cd build
  cmake ../kactivities-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DKDE4_BUILD_TESTS=OFF \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DWITH_NepomukCore=OFF
  make
}

package_kactivities4() {
  pkgdesc='The KActivity Manager Daemon'
  depends=('libkactivities4')
  replaces=('kactivities')
  conflicts=('kactivities')
  provides=('kactivities')

  cd build
  install -Dm755 src/service/kactivitymanagerd \
    "${pkgdir}"/usr/bin/kactivitymanagerd
}

package_libkactivities4() {
  pkgdesc='API for using and interacting with the Activity Manager'
  depends=('kdelibs')

  cd build
  make DESTDIR="${pkgdir}" install

  # Fix conflicts
  rm "${pkgdir}"/usr/bin/kactivitymanagerd
  rmdir "${pkgdir}"/usr/bin
}