File: Install-README-in-its-own-subdirectory.patch

package info (click to toggle)
btop 1.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,992 kB
  • sloc: cpp: 28,378; ansic: 5,333; makefile: 350
file content (39 lines) | stat: -rw-r--r-- 1,725 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From: =?utf-8?b?T3R0byBLZWvDpGzDpGluZW4=?= <otto@debian.org>
Date: Fri, 21 Nov 2025 21:18:01 -0800
Subject: Install README in its own subdirectory

According to the Linux Standard Base (LSB), README files should be
installed in the /usr/share/doc directory. By convention however the
README files should not go there 'bare', but in a subdirectory for each
program.

Install to $(PREFIX)/share/doc/btop/README.md to comply with this.

To ensure the 'themes' is copied as a full directory and not individual
files, create the /usr/share/btop in a separate step as the doc
installation step no longer does it.

Forwarded: https://github.com/aristocratos/btop/pull/1373
---
 Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 411727d..5ebcbd4 100644
--- a/Makefile
+++ b/Makefile
@@ -301,10 +301,11 @@ install:
 	@mkdir -p $(DESTDIR)$(PREFIX)/bin
 	@cp -p $(TARGETDIR)/btop $(DESTDIR)$(PREFIX)/bin/btop
 	@chmod 755 $(DESTDIR)$(PREFIX)/bin/btop
-	@printf "\033[1;92mInstalling doc to: \033[1;97m$(DESTDIR)$(PREFIX)/share/btop\n"
-	@mkdir -p $(DESTDIR)$(PREFIX)/share/btop
-	@cp -p README.md $(DESTDIR)$(PREFIX)/share/btop
+	@printf "\033[1;92mInstalling doc to: \033[1;97m$(DESTDIR)$(PREFIX)/share/doc/btop\n"
+	@mkdir -p $(DESTDIR)$(PREFIX)/share/doc/btop
+	@cp -p README.md $(DESTDIR)$(PREFIX)/share/doc/btop
 	@printf "\033[1;92mInstalling themes to: \033[1;97m$(DESTDIR)$(PREFIX)/share/btop/themes\033[0m\n"
+	@mkdir -p $(DESTDIR)$(PREFIX)/share/btop
 	@cp -pr themes $(DESTDIR)$(PREFIX)/share/btop
 	@printf "\033[1;92mInstalling desktop entry to: \033[1;97m$(DESTDIR)$(PREFIX)/share/applications/btop.desktop\n"
 	@mkdir -p $(DESTDIR)$(PREFIX)/share/applications/