Update build & install process

This commit is contained in:
Manuel 2022-06-04 23:53:37 +02:00
parent 2efb26ea9a
commit 7d7e0d5c9f
Signed by: Manuel
GPG key ID: 4085037435E1F07A
2 changed files with 6 additions and 9 deletions

View file

@ -1,7 +1,7 @@
pkgbase = plasma5-wallpapers-wallpaper-engine pkgbase = plasma5-wallpapers-wallpaper-engine
pkgdesc = A KDE wallpaper plugin integrating wallpaper engine pkgdesc = A KDE wallpaper plugin integrating wallpaper engine
pkgver = 0.5.2 pkgver = 0.5.2
pkgrel = 1 pkgrel = 2
url = https://github.com/catsout/wallpaper-engine-kde-plugin url = https://github.com/catsout/wallpaper-engine-kde-plugin
arch = x86_64 arch = x86_64
license = GPL2 license = GPL2

View file

@ -4,7 +4,7 @@ pkgname=plasma5-wallpapers-wallpaper-engine
_pkgname=wallpaper-engine-kde-plugin _pkgname=wallpaper-engine-kde-plugin
pkgver=0.5.2 pkgver=0.5.2
_pkgver_glslang=11.9.0 _pkgver_glslang=11.9.0
pkgrel=1 pkgrel=2
pkgdesc='A KDE wallpaper plugin integrating wallpaper engine' pkgdesc='A KDE wallpaper plugin integrating wallpaper engine'
arch=('x86_64') arch=('x86_64')
url='https://github.com/catsout/wallpaper-engine-kde-plugin' url='https://github.com/catsout/wallpaper-engine-kde-plugin'
@ -23,14 +23,11 @@ prepare() {
} }
build() { build() {
cd "${_pkgname}-${pkgver}" cmake -B build -S "${_pkgname}-${pkgver}" \
mkdir -p build && cd build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(kf5-config --prefix) .. cmake --build build
make
} }
package() { package() {
cd "${_pkgname}-${pkgver}" DESTDIR="$pkgdir" cmake --install build
cd build
make DESTDIR="$pkgdir/" install
} }