2014-06-22 20:01:09 +08:00
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
|
|
|
|
source ../plasma.conf
|
|
|
|
|
|
|
|
pkgname=kde-cli-tools
|
|
|
|
pkgver=${PVersion}
|
2014-07-18 06:19:21 +08:00
|
|
|
pkgrel=2
|
2014-06-22 20:01:09 +08:00
|
|
|
pkgdesc='KDE CLI tools'
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url='projects.kde.org/'
|
|
|
|
license=('LGPL')
|
|
|
|
depends=('qt5-base')
|
|
|
|
makedepends=('extra-cmake-modules' 'kwindowsystem' 'kdesu' 'kdelibs4support' 'kcmutils' 'kemoticons' 'kitemmodels' 'kinit')
|
|
|
|
checkdepends=("cmake")
|
2014-07-11 00:48:32 +08:00
|
|
|
groups=('plasma')
|
2014-06-22 20:01:09 +08:00
|
|
|
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:01:09 +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
|
|
|
|
}
|