mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-19 19:25:41 +02:00
meson: don't compress man pages
This is up to the distribution/packager. For example, arch automatically compresses man pages.
This commit is contained in:
parent
22989d60e3
commit
6a10ddbc39
3 changed files with 7 additions and 9 deletions
4
PKGBUILD
4
PKGBUILD
|
@ -1,11 +1,11 @@
|
||||||
pkgname=f00bar
|
pkgname=f00bar
|
||||||
pkgver=0.9.0.r200.gaaa5239
|
pkgver=0.9.0.r203.g22989d6
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Simplistic and highly configurable status panel for X and Wayland"
|
pkgdesc="Simplistic and highly configurable status panel for X and Wayland"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url=https://gitlab.com/dnkl/f00bar
|
url=https://gitlab.com/dnkl/f00bar
|
||||||
license=(mit)
|
license=(mit)
|
||||||
makedepends=('meson' 'ninja' 'scdoc' 'gzip')
|
makedepends=('meson' 'ninja' 'scdoc')
|
||||||
depends=(
|
depends=(
|
||||||
'libxcb' 'xcb-util' 'xcb-util-cursor' 'xcb-util-wm'
|
'libxcb' 'xcb-util' 'xcb-util-cursor' 'xcb-util-wm'
|
||||||
'wayland' 'wlroots'
|
'wayland' 'wlroots'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
pkgname=f00bar-wayland
|
pkgname=f00bar-wayland
|
||||||
pkgver=0.9.0.r200.gaaa5239
|
pkgver=0.9.0.r203.g22989d6
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Simplistic and highly configurable status panel for Wayland"
|
pkgdesc="Simplistic and highly configurable status panel for Wayland"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
@ -7,7 +7,7 @@ url=https://gitlab.com/dnkl/f00bar
|
||||||
license=(mit)
|
license=(mit)
|
||||||
conflicts=('f00bar')
|
conflicts=('f00bar')
|
||||||
provides=('f00bar')
|
provides=('f00bar')
|
||||||
makedepends=('meson' 'ninja' 'scdoc' 'gzip')
|
makedepends=('meson' 'ninja' 'scdoc')
|
||||||
depends=(
|
depends=(
|
||||||
'wayland' 'wlroots'
|
'wayland' 'wlroots'
|
||||||
'freetype2' 'fontconfig' 'cairo'
|
'freetype2' 'fontconfig' 'cairo'
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
sh = find_program('sh', native: true)
|
sh = find_program('sh', native: true)
|
||||||
scdoc = dependency('scdoc', native: true)
|
scdoc = dependency('scdoc', native: true)
|
||||||
scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true)
|
scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), native: true)
|
||||||
gzip = find_program('gzip', native: true)
|
|
||||||
|
|
||||||
foreach man_src : ['f00bar.1.scd', 'f00bar.5.scd', 'f00bar-decorations.5.scd',
|
foreach man_src : ['f00bar.1.scd', 'f00bar.5.scd', 'f00bar-decorations.5.scd',
|
||||||
'f00bar-modules.5.scd', 'f00bar-particles.5.scd',
|
'f00bar-modules.5.scd', 'f00bar-particles.5.scd',
|
||||||
|
@ -9,14 +8,13 @@ foreach man_src : ['f00bar.1.scd', 'f00bar.5.scd', 'f00bar-decorations.5.scd',
|
||||||
parts = man_src.split('.')
|
parts = man_src.split('.')
|
||||||
name = parts[-3]
|
name = parts[-3]
|
||||||
section = parts[-2]
|
section = parts[-2]
|
||||||
out = '@0@.@1@.gz'.format(name, section)
|
out = '@0@.@1@'.format(name, section)
|
||||||
|
|
||||||
custom_target(
|
custom_target(
|
||||||
out,
|
out,
|
||||||
output: out,
|
output: out,
|
||||||
input: man_src,
|
input: man_src,
|
||||||
command: [sh, '-c', '@0@ < @INPUT@ | @1@ > doc/@2@'.format(
|
command: [sh, '-c', '@0@ < @INPUT@ > doc/@1@'.format(scdoc_prog.path(), out)],
|
||||||
scdoc_prog.path(), gzip.path(), out)],
|
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: '@0@/man@1@'.format(get_option('mandir'), section))
|
install_dir: join_paths(get_option('mandir'), 'man@0@'.format(section)))
|
||||||
endforeach
|
endforeach
|
||||||
|
|
Loading…
Add table
Reference in a new issue