diff --git a/.gear/rules b/.gear/rules index 306bbec..8729190 100644 --- a/.gear/rules +++ b/.gear/rules @@ -1 +1,2 @@ tar: @version@:. +copy: *.patch diff --git a/lightdm-webkit2-greeter-3.4.1-makefile.patch b/lightdm-webkit2-greeter-3.4.1-makefile.patch new file mode 100644 index 0000000..6706e48 --- /dev/null +++ b/lightdm-webkit2-greeter-3.4.1-makefile.patch @@ -0,0 +1,12 @@ +diff -uNBbwp lightdm-webkit2-greeter-3.4.1/Makefile lightdm-webkit2-greeter-3.4.1-new/Makefile +--- lightdm-webkit2-greeter-3.4.1/Makefile 2022-04-11 22:18:38.000000000 +0000 ++++ lightdm-webkit2-greeter-3.4.1-new/Makefile 2022-05-10 10:22:31.989055367 +0000 +@@ -190,7 +190,7 @@ bin/screensaver.so := ${BUILD_DIR}/web-g + bin/screensaver.c := ${BUILD_DIR}/web-greeter/bindings/screensaver.c + + $(bin/screensaver.so): $(build/web-greeter) +- @gcc ${bin/screensaver.c} -o ${bin/screensaver.so} -shared -lX11 -lxcb ++ @gcc ${bin/screensaver.c} -o ${bin/screensaver.so} -shared -fpic -lX11 -lxcb + @cp ${bin/screensaver.so} src/bindings/ + @echo "✔ Screensaver.so compiled" + diff --git a/lightdm-webkit2-greeter.spec b/lightdm-webkit2-greeter.spec index acca598..5f0433a 100644 --- a/lightdm-webkit2-greeter.spec +++ b/lightdm-webkit2-greeter.spec @@ -9,10 +9,12 @@ Url: https://github.com/JezerM/web-greeter Packager: Hihin Ruslan -ExcludeArch: aarch64 armh ppc64le i586 +ExcludeArch: aarch64 armh ppc64le Source: %name-%version.tar +Patch: lightdm-webkit2-greeter-3.4.1-makefile.patch + %add_findprov_skiplist %_libdir/web-greeter/*.py %add_findreq_skiplist %_libdir/web-greeter/*.py @@ -40,6 +42,8 @@ Also, check out nody-greeter, a greeter made in Node.js with Electron! (Actually %prep %setup %make clean +%patch -p1 + subst 's,\,%_lib,g' Makefile @@ -82,3 +86,4 @@ subst 's,\,%_lib,g' Makefile * Mon May 09 2022 Hihin Ruslan 3.4.1-alt1 - Initial build for Sisyphus +