From 76b4c117a6601dcee41b30359bb55e25c6a809ca Mon Sep 17 00:00:00 2001 From: Popa Ioan Alexandru Date: Thu, 21 Oct 2021 21:16:05 +0300 Subject: [PATCH] New package: ThemeChanger --- srcpkgs/ThemeChanger/patches/usrlib.patch | 49 +++++++++++++++++++++++ srcpkgs/ThemeChanger/template | 16 ++++++++ 2 files changed, 65 insertions(+) create mode 100644 srcpkgs/ThemeChanger/patches/usrlib.patch create mode 100644 srcpkgs/ThemeChanger/template diff --git a/srcpkgs/ThemeChanger/patches/usrlib.patch b/srcpkgs/ThemeChanger/patches/usrlib.patch new file mode 100644 index 000000000000..c1aded21f475 --- /dev/null +++ b/srcpkgs/ThemeChanger/patches/usrlib.patch @@ -0,0 +1,49 @@ +From 514a41f59cfa9f350900440637b3a0a46e8c53f8 Mon Sep 17 00:00:00 2001 +From: Popa Ioan Alexandru +Date: Thu, 21 Oct 2021 00:36:53 +0300 +Subject: [PATCH] Patch for Void Linux so that the compiled C module stays in + /usr/lib; with it all the other modules + +--- + src/meson.build | 4 +++- + src/themechanger.in | 3 ++- + 2 files changed, 5 insertions(+), 2 deletions(-) + +diff --git a/src/meson.build b/src/meson.build +index 8d5dc46..6279359 100644 +--- a/src/meson.build ++++ b/src/meson.build +@@ -1,5 +1,6 @@ + pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name()) +-moduledir = join_paths(pkgdatadir, 'themechanger') ++libdir = join_paths(get_option('prefix'), get_option('libdir'), meson.project_name()) ++moduledir = join_paths(libdir, meson.project_name()) + gnome = import('gnome') + + gnome.compile_resources('themechanger', +@@ -16,6 +17,7 @@ conf.set('PYTHON', python.path()) + conf.set('VERSION', meson.project_version()) + conf.set('localedir', join_paths(get_option('prefix'), get_option('localedir'))) + conf.set('pkgdatadir', pkgdatadir) ++conf.set('libdir', libdir) + conf.set('gtkversion', '3.0') + + pythondep = python.dependency(version: '>= 3.6') +diff --git a/src/themechanger.in b/src/themechanger.in +index 99bb087..4c8c37d 100755 +--- a/src/themechanger.in ++++ b/src/themechanger.in +@@ -8,8 +8,9 @@ import signal + VERSION = '@VERSION@' + pkgdatadir = '@pkgdatadir@' + localedir = '@localedir@' ++libdir = '@libdir@' + +-sys.path.insert(1, pkgdatadir) ++sys.path.insert(1, libdir) + signal.signal(signal.SIGINT, signal.SIG_DFL) + + if __name__ == '__main__': +-- +2.33.0 + diff --git a/srcpkgs/ThemeChanger/template b/srcpkgs/ThemeChanger/template new file mode 100644 index 000000000000..d85585151935 --- /dev/null +++ b/srcpkgs/ThemeChanger/template @@ -0,0 +1,16 @@ +# Template file for 'ThemeChanger' +pkgname=ThemeChanger +version=0.10.2 +revision=1 +build_style=meson +hostmakedepends="pkg-config python3 glib-devel" +makedepends="gdk-pixbuf-devel libXcursor-devel python3-devel python3-gobject-devel" +depends="gtk+3 python3-gobject" +short_desc="Theme changing utility for Linux" +maintainer="Popa Ioan Alexandru " +license="GPL-2.0-or-later" +homepage="https://github.com/ALEX11BR/ThemeChanger" +distfiles="https://github.com/ALEX11BR/ThemeChanger/archive/refs/tags/v${version}.tar.gz" +checksum="de5b3171b91d39af8becf09e42f81af80d9414a7ec2023b2e96a46bae6f9aa69" +nocross="Meson can't properly cross-compile Python C modules (https://github.com/mesonbuild/meson/issues/7049)" +python_version=3 \ No newline at end of file