2014-06-22 20:22:30 +08:00
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
|
|
|
|
source ../plasma.conf
|
|
|
|
|
|
|
|
pkgname=kio-extras
|
|
|
|
pkgver=${PVersion}
|
2014-07-18 06:19:21 +08:00
|
|
|
pkgrel=2
|
2014-06-22 20:22:30 +08:00
|
|
|
pkgdesc="KDE's screen management library"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url='projects.kde.org/'
|
|
|
|
license=('LGPL')
|
|
|
|
depends=('qt5-base' 'solid' 'kdelibs4support' 'kio' 'kconfig' 'khtml' 'kiconthemes' 'kemoticons' 'kitemmodels' 'kdnssd')
|
|
|
|
makedepends=('extra-cmake-modules')
|
|
|
|
checkdepends=("cmake")
|
|
|
|
groups=('plasma')
|
|
|
|
options=("debug")
|
|
|
|
source=("${PServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
|
|
|
|
sha256sums=( $(getSum ${pkgname}) )
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
2014-07-05 20:42:42 +08:00
|
|
|
sed -e "s/PO_FILES //" -i ${srcdir}/$pkgname-$pkgver/po/*/CMakeLists.txt
|
2014-06-22 20:22:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
|
|
|
cmake ../${pkgname}-${pkgver} \
|
|
|
|
-DCMAKE_BUILD_TYPE=${PBuildType} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${PInstallPrefix} \
|
|
|
|
-DLIB_INSTALL_DIR=lib
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd build
|
|
|
|
make test || return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|