desktop/kdepim-runtime/PKGBUILD

61 lines
1.5 KiB
Bash

# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
# Include global configuration
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgbase=kdepim-runtime
pkgname=${pkgbase}
arch=('x86_64')
pkgver=${_kdever}
pkgrel=2
pkgdesc='Extends the functionality of KDE PIM'
url='https://projects.kde.org/projects/kde/kdepim-runtime'
license=('GPL'
'LGPL'
'FDL')
install=${pkgbase}.install
options=('docs'
'!header'
'debug'
'log')
depends=("kdepimlibs>=${_kdever}"
"kde-runtime>=${_kdever}"
"kdelibs>=${_kdever}"
'prison'
'libdmtx'
'qrencode'
'libkgapi'
'libkfbapi'
'libkolab')
makedepends=('pkg-config'
'cmake'
'automoc4')
groups=('kde'
'kdepim'
'kde-uninstall'
'kde-minimal')
source=($_mirror/${pkgbase}-$_kdever.tar.xz)
sha256sums=(`grep ${pkgbase}-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`)
prepare() {
cd "${srcdir}"
mkdir build
}
build() {
cd "${srcdir}/build"
cmake ../${pkgbase}-${pkgver} \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DKDE4_BUILD_TESTS=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
}
package() {
cd "${srcdir}/build"
make DESTDIR=${pkgdir} install
}