Github messages for voidlinux
 help / color / mirror / Atom feed
From: tranzystorek-io <tranzystorek-io@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: ncdu2-2.2.2
Date: Sun, 02 Apr 2023 10:47:58 +0200	[thread overview]
Message-ID: <20230402084758.Y_h8bgJSUmgfRqljhLNk1nx4S8bZDFUQyf9rnu1kRBA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43159@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]

There is an updated pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages ncdu2
https://github.com/void-linux/void-packages/pull/43159

New package: ncdu2-2.2.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/43159.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ncdu2-43159.patch --]
[-- Type: text/x-diff, Size: 1789 bytes --]

From 8c57b4ff50c5544d7b223c7e17d8c6db0014d4dd Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
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 <tranzystorek.io@protonmail.com>"
+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
+}

  parent reply	other threads:[~2023-04-02  8:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-01 11:19 [PR PATCH] " tranzystorek-io
2023-04-01 13:14 ` icp1994
2023-04-01 13:17 ` tranzystorek-io
2023-04-02  8:47 ` tranzystorek-io [this message]
2023-04-02 10:09 ` [PR PATCH] [Updated] " tranzystorek-io
2023-05-16 14:28 ` tranzystorek-io
2023-05-16 16:01 ` [PR PATCH] [Merged]: " leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230402084758.Y_h8bgJSUmgfRqljhLNk1nx4S8bZDFUQyf9rnu1kRBA@z \
    --to=tranzystorek-io@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).