PKGBUILD 996 Bytes
Newer Older
Luca Giambonini's avatar
Luca Giambonini committed
1 2

pkgname=qqc2-desktop-style
Luca Giambonini's avatar
Luca Giambonini committed
3
pkgver=5.47.0
Luca Giambonini's avatar
Luca Giambonini committed
4 5 6 7 8 9
pkgrel=1
pkgdesc='A style for Qt Quick Controls 2 to make it follow your desktop theme'
arch=(x86_64)
url='https://community.kde.org/Frameworks'
license=(LGPL)
groups=(kf5)
10
depends=(kirigami kiconthemes)
Luca Giambonini's avatar
Luca Giambonini committed
11 12
makedepends=(extra-cmake-modules)
options=("debug")
Luca Giambonini's avatar
Luca Giambonini committed
13
_url="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
14 15 16 17
source=(${_url}{,.sig})
sha256sums=($(curl "$_url.sha256" | cut -c-64)
            SKIP)
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
Luca Giambonini's avatar
Luca Giambonini committed
18 19 20 21 22 23 24

prepare() {
  mkdir -p build
}

build() {
  cd build
25
  cmake ../${pkgname}-${pkgver} \
Luca Giambonini's avatar
Luca Giambonini committed
26
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
27 28 29 30 31 32
        -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 "$@"
Luca Giambonini's avatar
Luca Giambonini committed
33 34 35 36 37 38 39
  make
}

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