2014-01-19 01:14:35 +08:00
|
|
|
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
|
|
|
|
|
|
|
source ../frameworks.conf
|
|
|
|
|
|
|
|
pkgname=kinit
|
|
|
|
pkgver=${KFVersion}
|
2014-08-10 23:05:41 +08:00
|
|
|
pkgrel=1
|
2014-01-19 01:14:35 +08:00
|
|
|
pkgdesc='KInit'
|
2014-08-10 23:05:41 +08:00
|
|
|
arch=('x86_64')
|
2014-01-19 01:14:35 +08:00
|
|
|
url='https://projects.kde.org/projects/frameworks/kinit'
|
|
|
|
license=('LGPL')
|
|
|
|
depends=('kio')
|
2014-06-22 16:20:09 +08:00
|
|
|
makedepends=('extra-cmake-modules' 'kdoctools' 'qt5-tools')
|
2014-01-19 01:14:35 +08:00
|
|
|
checkdepends=('cmake')
|
|
|
|
groups=('kf5')
|
|
|
|
options=("debug")
|
|
|
|
source=("${KFServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
|
2014-06-22 16:20:09 +08:00
|
|
|
sha256sums=( $(getSum ${pkgname}) )
|
2014-01-19 01:14:35 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
mkdir -p build
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd build
|
|
|
|
cmake ../${pkgname}-${pkgver} \
|
|
|
|
-DCMAKE_BUILD_TYPE=${KFBuildType} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${KFInstallPrefix} \
|
|
|
|
-DLIB_INSTALL_DIR=lib
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd build
|
|
|
|
make test
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|