From 7d7e0d5c9f4b5b43cf59636602e7d15fb62e31b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20H=C3=BCsers?= Date: Sat, 4 Jun 2022 23:53:37 +0200 Subject: [PATCH] Update build & install process --- .SRCINFO | 2 +- PKGBUILD | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index df73bf3..60d0ef1 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = plasma5-wallpapers-wallpaper-engine pkgdesc = A KDE wallpaper plugin integrating wallpaper engine pkgver = 0.5.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/catsout/wallpaper-engine-kde-plugin arch = x86_64 license = GPL2 diff --git a/PKGBUILD b/PKGBUILD index ce8581a..4a74d21 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ pkgname=plasma5-wallpapers-wallpaper-engine _pkgname=wallpaper-engine-kde-plugin pkgver=0.5.2 _pkgver_glslang=11.9.0 -pkgrel=1 +pkgrel=2 pkgdesc='A KDE wallpaper plugin integrating wallpaper engine' arch=('x86_64') url='https://github.com/catsout/wallpaper-engine-kde-plugin' @@ -23,14 +23,11 @@ prepare() { } build() { - cd "${_pkgname}-${pkgver}" - mkdir -p build && cd build - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) .. - make + cmake -B build -S "${_pkgname}-${pkgver}" \ + -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF + cmake --build build } package() { - cd "${_pkgname}-${pkgver}" - cd build - make DESTDIR="$pkgdir/" install + DESTDIR="$pkgdir" cmake --install build }