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

2
pkgname=kactivities
Luca Giambonini's avatar
Luca Giambonini committed
3
pkgver=5.47.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')
Xuetian Weng's avatar
Xuetian Weng committed
10
makedepends=("extra-cmake-modules>=${KFECMVersion}" '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')
Luca Giambonini's avatar
Luca Giambonini committed
16
_url="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
17 18 19 20
source=(${_url}{,.sig})
sha256sums=($(curl "$_url.sha256" | cut -c-64)
            SKIP)
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
21

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

prepare() {
  mkdir -p build
}

build() {
  cd build
29
  cmake ../${pkgname}-${pkgver} \
Luca Giambonini's avatar
Luca Giambonini committed
30
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
31 32 33 34 35 36
        -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 "$@" \
37
    -DPYTHON_EXECUTABLE=/usr/bin/python3 
Xuetian Weng's avatar
Xuetian Weng committed
38 39 40 41 42
  make
}

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