Skip to content

Commit

Permalink
nwg-launchers: update to 0.7.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cinerea0 authored and paper42 committed Dec 16, 2022
1 parent b1290f1 commit 73629d5
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 4 deletions.
47 changes: 47 additions & 0 deletions srcpkgs/nwg-launchers/patches/disable-readme-generation.patch
Original file line number Diff line number Diff line change
@@ -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')

8 changes: 4 additions & 4 deletions srcpkgs/nwg-launchers/template
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 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++"
short_desc="GTK-based launchers for window managers"
maintainer="Érico Nogueira <ericonr@disroot.org>"
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

0 comments on commit 73629d5

Please sign in to comment.