PKGBUILD 1.29 KB
Newer Older
Xuetian Weng's avatar
Xuetian Weng committed
1

2
pkgname=kactivities
AlmAck's avatar
AlmAck committed
3
pkgver=5.62.0
4
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
5 6
arch=('x86_64')
pkgdesc="Core components for the KDE's Activities"
Xuetian Weng's avatar
Xuetian Weng committed
7
url='https://projects.kde.org/projects/frameworks/kactivities'
Xuetian Weng's avatar
Xuetian Weng committed
8
license=('LGPL')
9
depends=('kcmutils' 'kdeclarative' 'kactivitymanagerd>=5.5.95')
AlmAck's avatar
AlmAck committed
10
makedepends=("extra-cmake-modules>=5.62.0" 'boost' 'python3')
AlmAck's avatar
AlmAck committed
11 12 13
provides=("kactivities-frameworks=${pkgver}" 'libkactivities4')
replaces=("kactivities-frameworks" 'kactivities4' 'libkactivities4')
conflicts=('kactivities4' 'kactivities-frameworks' 'libkactivities4')
Xuetian Weng's avatar
Xuetian Weng committed
14 15
options=("debug")
groups=('kf5')
16
source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
AlmAck's avatar
AlmAck committed
17
sha256sums=('b466b8921adad6d887f93f760634dfa344ae52df83c58dd7ae75174961def85b'
almack's avatar
almack committed
18
            'SKIP')
AlmAck's avatar
AlmAck committed
19
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
AlmAck's avatar
AlmAck committed
20

Xuetian Weng's avatar
Xuetian Weng committed
21 22 23 24 25 26 27

prepare() {
  mkdir -p build
}

build() {
  cd build
28
  cmake ../${pkgname}-${pkgver} \
AlmAck's avatar
AlmAck committed
29
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
AlmAck's avatar
AlmAck committed
30 31 32 33 34 35
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DKDE_INSTALL_LIBDIR=lib \
        -DKDE_INSTALL_SYSCONFDIR=/etc \
        -DKDE_INSTALL_LIBEXECDIR=lib \
        -DBUILD_TESTING=OFF \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@" \
36
    -DPYTHON_EXECUTABLE=/usr/bin/python3 
Xuetian Weng's avatar
Xuetian Weng committed
37 38 39 40 41
  make
}

package() {
  cd build
AlmAck's avatar
AlmAck committed
42 43
  
  make  DESTDIR="${pkgdir}"  install
Xuetian Weng's avatar
Xuetian Weng committed
44
}