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
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

View file

@ -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
}