[packages/ncdu1] ncdu 1.x as ncdu1
arekm
arekm at pld-linux.org
Tue Sep 8 12:42:13 CEST 2026
commit 615591c79d0e96fd6038da8df0d6709c345a521b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Sep 8 08:44:59 2026 +0200
ncdu 1.x as ncdu1
ncdu.spec => ncdu1.spec | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/ncdu.spec b/ncdu1.spec
similarity index 65%
rename from ncdu.spec
rename to ncdu1.spec
index 9c0d63e..6c5850e 100644
--- a/ncdu.spec
+++ b/ncdu1.spec
@@ -1,12 +1,14 @@
-Summary: Text-based disk usage viewer
-Name: ncdu
+%define pkgname ncdu
+#
+Summary: Text-based disk usage viewer (C version)
+Name: ncdu1
Version: 1.23.0
Release: 1
License: MIT
Group: Applications/File
# Maintenance fork; the original author died and dev.yorhel.nl is frozen at 1.22.
URL: https://github.com/BratishkaErik/ncdu
-Source0: https://github.com/BratishkaErik/ncdu/releases/download/v%{version}/%{name}-%{version}-src.tar.gz
+Source0: https://github.com/BratishkaErik/ncdu/releases/download/v%{version}/%{pkgname}-%{version}-src.tar.gz
# Source0-md5: 382be8498c62158a6f1c3848be3764ff
BuildRequires: autoconf
BuildRequires: automake
@@ -20,7 +22,7 @@ ncdu (NCurses Disk Usage) is a curses-based version of the well-known
disk space.
%prep
-%setup -q
+%setup -q -n %{pkgname}-%{version}
%build
%{__aclocal}
@@ -35,11 +37,15 @@ rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+# renamed so the C and zig versions can be installed side by side
+mv $RPM_BUILD_ROOT%{_bindir}/%{pkgname} $RPM_BUILD_ROOT%{_bindir}/%{name}
+mv $RPM_BUILD_ROOT%{_mandir}/man1/%{pkgname}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README.md
-%attr(755,root,root) %{_bindir}/ncdu
-%{_mandir}/man1/ncdu.1*
+%attr(755,root,root) %{_bindir}/%{name}
+%{_mandir}/man1/%{name}.1*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ncdu1.git/commitdiff/615591c79d0e96fd6038da8df0d6709c345a521b
More information about the pld-cvs-commit
mailing list