From 8c57b4ff50c5544d7b223c7e17d8c6db0014d4dd Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Sat, 1 Apr 2023 11:14:37 +0200 Subject: [PATCH] New package: ncdu2-2.2.2 --- srcpkgs/ncdu2/patches/build-pie.patch | 12 ++++++++++++ srcpkgs/ncdu2/template | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/ncdu2/patches/build-pie.patch create mode 100644 srcpkgs/ncdu2/template diff --git a/srcpkgs/ncdu2/patches/build-pie.patch b/srcpkgs/ncdu2/patches/build-pie.patch new file mode 100644 index 000000000000..b60fa57b912c --- /dev/null +++ b/srcpkgs/ncdu2/patches/build-pie.patch @@ -0,0 +1,12 @@ +diff --git a/build.zig b/build.zig +index 45bd314..02926f0 100644 +--- a/build.zig ++++ b/build.zig +@@ -13,6 +13,7 @@ pub fn build(b: *std.build.Builder) void { + exe.addCSourceFile("src/ncurses_refs.c", &[_][]const u8{}); + exe.linkLibC(); + exe.linkSystemLibrary("ncursesw"); ++ exe.pie = true; + exe.install(); + + const run_cmd = exe.run(); diff --git a/srcpkgs/ncdu2/template b/srcpkgs/ncdu2/template new file mode 100644 index 000000000000..dc6af0e5ccbb --- /dev/null +++ b/srcpkgs/ncdu2/template @@ -0,0 +1,19 @@ +# Template file for 'ncdu2' +pkgname=ncdu2 +version=2.2.2 +revision=1 +build_style=zig-build +makedepends="ncurses-devel" +short_desc="NCurses Disk Usage utility version 2" +maintainer="Marcin Puc " +license="MIT" +homepage="https://dev.yorhel.nl/ncdu" +changelog="https://dev.yorhel.nl/ncdu/changes2" +distfiles="https://dev.yorhel.nl/download/ncdu-${version}.tar.gz" +checksum=90d920024e752318b469776ce57e03b3c702d49329ad9825aeeab36c3babf993 +conflicts="ncdu" + +post_install() { + vlicense LICENSES/MIT.txt + vman ncdu.1 +}