desktop/kdepimlibs/PKGBUILD

35 lines
1020 B
Bash

# Include global configuration
source ../kdeapps.conf
pkgname="kdepimlibs"
arch=('x86_64')
pkgver=${_libsver}
pkgrel=1
pkgdesc="KDE PIM libraries"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
install=${pkgname}.install
options=('docs' 'debug')
depends=("kdelibs>=${_libsver}" 'akonadi' 'libical' 'gpgme' 'prison' 'libdmtx' 'qrencode' 'qjson')
makedepends=('pkg-config' 'cmake' 'automoc4' 'boost' 'cyrus-sasl' 'openldap' 'prison' 'docbook-xsl')
groups=('kde' 'kde-uninstall' 'kde-minimal')
source=($_mirror/${pkgname}-$_libsver.tar.xz)
sha256sums=(`grep ${pkgname}-$_libsver.tar.xz ../checksums.txt | cut -d" " -f1`)
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
}