# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=kdesignerplugin pkgver=${_kf5ver} pkgrel=1 pkgdesc='KDesignerPlugin' arch=('x86_64') url='https://projects.kde.org/projects/frameworks/kdesignerplugin' license=('LGPL') depends=('kio' 'kplotting' 'kcompletion' 'kconfigwidgets' 'kiconthemes' 'kitemviews' 'kplotting' 'ktextwidgets' 'kwidgetsaddons' 'kxmlgui' 'sonnet') makedepends=('extra-cmake-modules' 'qt5-tools' 'kdoctools') groups=('kf5') source=("http://download.kde.org/unstable/frameworks/${pkgver}/${pkgname}-${pkgver}.tar.xz") md5sums=(`grep ${pkgname}-${_kf5ver}.tar.xz ../kf5.md5 | cut -d" " -f1`) build() { #export XDG_DATA_DIRS="/opt/kf5/share:$XDG_DATA_DIRS" mkdir -p build cd build cmake ../${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_INSTALL_DIR=lib \ -DPLUGIN_INSTALL_DIR=/usr/lib/qt5/plugins \ -DBUILD_TESTING=OFF make } package() { cd build make DESTDIR="${pkgdir}" install }