PKGBUILD 1.16 KB
Newer Older
Xuetian Weng's avatar
Xuetian Weng committed
1 2 3 4
# Contributor: Andrea Scarpino <andrea@archlinux.org>


pkgname=kguiaddons
Luca Giambonini's avatar
Luca Giambonini committed
5
pkgver=5.47.0
6
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
7 8 9 10
pkgdesc='Higher level user interface components for common tasks'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kguiaddons'
license=('LGPL')
11
depends=("qt5-base" "qt5-x11extras")
Xuetian Weng's avatar
Xuetian Weng committed
12 13 14 15
makedepends=("extra-cmake-modules>=${KFECMVersion}")
checkdepends=('xorg-server-xvfb')
groups=('kf5')
options=('debug')
16 17
source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig})
sha256sums=('124249df6eb276dd483ec26312046ecfb07a980381d15d37ccb8567debdff192'
18 19
            SKIP)
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
Xuetian Weng's avatar
Xuetian Weng committed
20 21 22 23 24 25 26

prepare() {
  mkdir -p build
}

build() {
  cd build
27
  cmake ../${pkgname}-${pkgver} \
Luca Giambonini's avatar
Luca Giambonini committed
28
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
29 30 31 32 33 34
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DKDE_INSTALL_LIBDIR=lib \
        -DKDE_INSTALL_SYSCONFDIR=/etc \
        -DKDE_INSTALL_LIBEXECDIR=lib \
        -DBUILD_TESTING=OFF \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@"
Xuetian Weng's avatar
Xuetian Weng committed
35 36 37
  make
}

38 39 40 41
# check() {
#   cd build
#   xvfb-run make test
# }
Xuetian Weng's avatar
Xuetian Weng committed
42 43 44 45 46

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