desktop/kdepimlibs/PKGBUILD
2013-06-16 16:03:48 +00:00

47 lines
1.2 KiB
Bash

#
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer: Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname="kdepimlibs"
arch=('x86_64')
pkgver=${_kdever}
pkgrel=1
pkgdesc="KDE Pim Libraries"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
install=${pkgname}.install
options=('docs' '!splithdr' 'splitdbg' 'log')
depends=("kdelibs>=${_kdever}" 'akonadi>=1.9.80' 'libical' 'gpgme' 'prison' 'libdmtx' 'qrencode' 'qjson' 'nepomuk-core')
makedepends=('pkg-config' 'cmake>=2.8.9' 'automoc4' 'boost' 'cyrus-sasl' 'openldap' 'prison' 'docbook-xsl')
groups=("kde" "kde-uninstall" "kde-minimal")
source=($_mirror/${pkgname}-$_kdever.tar.xz)
md5sums=(`grep ${pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`)
build() {
msg "starting build ..."
cd ${srcdir}
mkdir -p build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_BUILD_TYPE=${_build_type} \
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
make
}
package() {
cd ${srcdir}/build
make DESTDIR=${pkgdir} install
}