* add: btdu

* pretend to be c



* Update btdu.spec



* Update btdu.spec



* Update btdu.spec



---------


(cherry picked from commit b367dc15e5)

Signed-off-by: madomado <madonuko@outlook.com>
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-05-23 08:50:26 -07:00
committed by GitHub
parent d835f8aec4
commit 84e4764729
3 changed files with 46 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "btdu.spec"
}
}
+40
View File
@@ -0,0 +1,40 @@
%define debug_package %nil
Name: btdu
Version: 0.6.0
Release: 1%?dist
Summary: Sampling disk usage profiler for btrfs
License: GPL-2.0-only
URL: https://github.com/CyberShadow/btdu
Source0: %url/archive/refs/tags/v%version.tar.gz
# gcc-gdc is built using ldc ironically
# let's just use ldc instead, they have the funny macros
BuildRequires: dub ldc mold
BuildRequires: pkgconfig(ncurses)
ExclusiveArch: %ldc_arches
%description
%summary.
%prep
%autosetup
%build
# see macro _d_optflags
# got rid of -release
export DFLAGS="-O -gc -wi --linker=mold"
dub build -b release --parallel -n -y --compiler=ldmd2 # release-debug doesn't work
%install
install -Dpm755 btdu -t %buildroot%_bindir
install -Dpm644 btdu.1 -t %buildroot%_mandir/man1
%files
%doc README.md
%license COPYING
%_bindir/btdu
%_mandir/man1/btdu.1.gz
%changelog
* Sun May 05 2024 madonuko <mado@fyralabs.com> - 0.5-1
- Initial package.
+1
View File
@@ -0,0 +1 @@
rpm.version(gh("CyberShadow/btdu"));