desktop/kdepim-runtime/PKGBUILD
2015-04-09 21:07:08 +00:00

40 lines
1.1 KiB
Bash

# Include global configuration
source ../kdeapps.conf
pkgname=kdepim-runtime
arch=('x86_64')
pkgver=${_libsver}
pkgrel=1
pkgdesc='Extends the functionality of KDE PIM'
url='https://projects.kde.org/projects/kde/kdepim-runtime'
license=('GPL' 'LGPL' 'FDL')
install=${pkgname}.install
options=('docs' '!header' 'debug' 'log')
depends=("kdepimlibs>=${_libsever}" "kde-runtime" "kdelibs>=${_libsver}" 'prison' 'libdmtx' 'qrencode' 'libkgapi'
'libkfbapi' 'libkolab')
makedepends=('pkg-config' 'cmake' 'automoc4')
groups=('kde' 'kdepim' 'kde-uninstall' 'kde-minimal')
source=($_mirror/${pkgname}-$_libsver.tar.xz)
sha256sums=(`grep ${pkgname}-$_libsver.tar.xz ../checksums.txt | cut -d" " -f1`)
prepare() {
cd "${srcdir}"
mkdir build
}
build() {
cd "${srcdir}/build"
cmake ../${pkgname}-${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
}