From 751ae72e018af43838a0872f7b517c671e3c0e41 Mon Sep 17 00:00:00 2001 From: cinerea0 Date: Mon, 28 Nov 2022 22:11:35 -0500 Subject: [PATCH] nwg-launchers: update to 0.7.1.1 --- .../patches/disable-readme-generation.patch | 47 +++++++++++++++++++ srcpkgs/nwg-launchers/template | 8 ++-- 2 files changed, 51 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/nwg-launchers/patches/disable-readme-generation.patch diff --git a/srcpkgs/nwg-launchers/patches/disable-readme-generation.patch b/srcpkgs/nwg-launchers/patches/disable-readme-generation.patch new file mode 100644 index 0000000000000..93049467e3392 --- /dev/null +++ b/srcpkgs/nwg-launchers/patches/disable-readme-generation.patch @@ -0,0 +1,47 @@ +# https://github.com/nwg-piotr/nwg-launchers/commit/c4d8d369782d32becfe8a8105abec9b61119a629 +diff --git a/meson.build b/meson.build +index f6159b4..fc5ef60 100644 +--- a/meson.build ++++ b/meson.build +@@ -67,14 +67,15 @@ if get_option('grid') + subdir('grid') + endif + +-python = find_program('python3', required: false) +-if not python.found() +- python = find_program('python', required: false) +-endif ++if get_option('generate-readme') ++ python = find_program('python3', required: false) ++ if not python.found() ++ message('python3 not found in PATH, trying python...') ++ python = find_program('python', required: true) ++ endif + +-# generate README.md from template +-# make sure to copy it to the source directory! +-if python.found() ++ # generate README.md from template ++ # make sure to copy it to the source directory! + readme = custom_target('readme', + output: [ 'README.md' ], + input: [ 'README.md.in' ], +@@ -90,8 +91,6 @@ if python.found() + install_dir: conf_data.get('datadir'), + install: true + ) +-else +- message('Python was not found, fresh README.md will not be generated') + endif + + install_data( +diff --git a/meson_options.txt b/meson_options.txt +index 683699e..65888ae 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -3,3 +3,4 @@ option('dmenu', type: 'boolean', value: true, description: 'Build the dmenu app. + option('grid', type: 'boolean', value: true, description: 'Build the grid app.') + option('layer-shell', type: 'feature', value: 'auto', description: 'Enable layer-shell support') + option('gdk-x11', type: 'feature', value: 'auto', description: 'Use Gdk X11 API') ++option('generate-readme', type: 'boolean', value: false, description: 'Generate fresh README.md in build directory') + diff --git a/srcpkgs/nwg-launchers/template b/srcpkgs/nwg-launchers/template index acf5bfc583497..beece5edef550 100644 --- a/srcpkgs/nwg-launchers/template +++ b/srcpkgs/nwg-launchers/template @@ -1,7 +1,7 @@ # Template file for 'nwg-launchers' pkgname=nwg-launchers -version=0.6.3 -revision=2 +version=0.7.1.1 +revision=1 build_style=meson hostmakedepends="pkg-config" makedepends="gtkmm-devel gtk-layer-shell-devel json-c++" @@ -9,5 +9,5 @@ short_desc="GTK-based launchers for window managers" maintainer="Érico Nogueira " license="GPL-3.0-or-later" homepage="https://github.com/nwg-piotr/nwg-launchers" -distfiles="${homepage}/archive/v${version}.tar.gz" -checksum=8be219ef7e8aead08b46215c9c545b1bf9d108cefee580ffcf297553dee9dfaf +distfiles="https://github.com/nwg-piotr/nwg-launchers/archive/refs/tags/v${version}.tar.gz" +checksum=3700fe67870ecead091abe672c93ce01a6351cb1e0be1904233050c22e86a7c4