PKGBUILD 928 Bytes
Newer Older
Fabian's avatar
Fabian committed
1 2 3 4 5
# Contributor: Andrea Scarpino <andrea@archlinux.org>

source ../frameworks.conf

pkgname=kwindowsystem
AlmAck's avatar
AlmAck committed
6 7
#pkgver=${KFVersion}
pkgver=5.3.1
AlmAck's avatar
AlmAck committed
8
pkgrel=1
Fabian's avatar
Fabian committed
9
pkgdesc='KWindowSystem'
AlmAck's avatar
AlmAck committed
10
arch=('x86_64')
Fabian's avatar
Fabian committed
11 12 13
url='https://projects.kde.org/projects/frameworks/kwindowsystem'
license=('LGPL')
depends=('qt5-x11extras' 'libxfixes')
14
makedepends=('extra-cmake-modules' 'qt5-tools')
Fabian's avatar
Fabian committed
15 16 17
checkdepends=('cmake')
groups=('kf5')
options=('debug')
AlmAck's avatar
AlmAck committed
18 19
#source=("${KFServer}/${pkgver}/${pkgname}-${pkgver}.tar.xz")
source=("${KFServer}/${KFVersion}/${pkgname}-${pkgver}.tar.xz")
20
sha256sums=( $(getSum ${pkgname}) )
Fabian's avatar
Fabian committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

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
  msg "test fails, requireq GUI?"
  make test || return 0
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}