i3lock-color: fix manpage-name and manpage (#40095)

- rename manpage from i3lock.1 to i3lock-color.1
- change "i3lock" to "i3lock-color" in manpage-synopsis
This commit is contained in:
Roland Koebler 2018-05-07 23:19:02 +02:00 committed by xeji
parent 02fff4699c
commit 810976e591

View File

@ -25,6 +25,8 @@ stdenv.mkDerivation rec {
installFlags = "PREFIX=\${out} SYSCONFDIR=\${out}/etc MANDIR=\${out}/share/man";
postInstall = ''
mv $out/bin/i3lock $out/bin/i3lock-color
mv $out/share/man/man1/i3lock.1 $out/share/man/man1/i3lock-color.1
sed -i 's/\(^\|\s\|"\)i3lock\(\s\|$\)/\1i3lock-color\2/g' $out/share/man/man1/i3lock-color.1
'';
meta = with stdenv.lib; {
description = "A simple screen locker like slock";