Created
February 12, 2024 08:19
-
-
Save arenekosreal/99921efb550e41454fef10e3b44d1634 to your computer and use it in GitHub Desktop.
plasma6-wallpapers-wallpaper-engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: catsout <outline941 at live.com> | |
# Contributor: Epix <epixtm@protonmail.com> | |
# Contributor: Manuel Hüsers <aur@huesers.de> | |
pkgname=plasma6-wallpapers-wallpaper-engine-git | |
pkgver=0.5.4.r42.g345570d | |
pkgrel=3 | |
pkgdesc="A simple kde wallpaper plugin integrating wallpaper engine" | |
arch=('x86_64') | |
url="https://github.com/catsout/wallpaper-engine-kde-plugin" | |
license=('GPL-2.0-only') | |
depends=( | |
"plasma5support" "libplasma" "kpackage" "gst-libav" "python-websockets" "qt6-declarative" | |
"qt6-websockets" "qt6-webchannel" "qt6-5compat" "qt6-webengine" "qt6-multimedia" "vulkan-driver" | |
) | |
makedepends=( | |
"vulkan-headers" "extra-cmake-modules" "git" "cmake" "mpv" | |
) | |
optdepends=( | |
"mpv: alternative video backend" | |
) | |
provides=("plasma6-wallpapers-wallpaper-engine") | |
conflicts=("plasma6-wallpapers-wallpaper-engine") | |
source=( | |
"${pkgname}::git+${url}.git" | |
"git+https://github.com/KhronosGroup/glslang.git" | |
"migrate-to-plasma-6.diff::https://github.com/catsout/wallpaper-engine-kde-plugin/pull/344.diff" | |
) | |
sha256sums=('SKIP' | |
'SKIP' | |
'c09e7f1e848536e31d3695b72d8279c5ccda9a2080a4161c2956c07b20d73596') | |
prepare(){ | |
cd "${srcdir}/${pkgname}" | |
git submodule init | |
grep submodule .gitmodules | sed 's/\[submodule "//;s/"\]//' | while read -r module | |
do | |
repo=$(basename "${module}") | |
git config "submodule.${module}.url" "${srcdir}/${repo}" | |
done | |
git -c protocol.file.allow=always submodule update | |
git apply "${srcdir}/migrate-to-plasma-6.diff" | |
} | |
pkgver(){ | |
cd "${srcdir}/${pkgname}" | |
git describe --tags --long | sed 's/v//;s/-/.r/;s/-/./g' | |
} | |
build(){ | |
cmake -B build -S "${srcdir}/${pkgname}" \ | |
-DCMAKE_INSTALL_PREFIX=/usr \ | |
-DCMAKE_BUILD_TYPE=None \ | |
-DQT_MAJOR_VERSION=6 | |
cmake --build build | |
} | |
package(){ | |
DESTDIR="${pkgdir}" cmake --install build | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment