Github messages for voidlinux
 help / color / mirror / Atom feed
From: Visone-Selektah <Visone-Selektah@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: devour-11.1
Date: Sun, 08 May 2022 19:17:14 +0200	[thread overview]
Message-ID: <20220508171714.-Q4hmT9mT3BSjdd6TZN1oDD4ART7MIJcpZXxiZWEsmw@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37002@inbox.vuxu.org>

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

There is an updated pull request by Visone-Selektah against master on the void-packages repository

https://github.com/Visone-Selektah/void-packages devour
https://github.com/void-linux/void-packages/pull/37002

New package: devour-11.1
<!-- 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 [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- 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, x86_64-musl
- I built this PR locally for these architectures :
  - X86_64
  - i686



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

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

From 1c450189a7b9a634e58d0e4cac93217fb48a1170 Mon Sep 17 00:00:00 2001
From: Victor Tebar <victortebar@gmail.com>
Date: Fri, 6 May 2022 14:27:06 +0200
Subject: [PATCH 1/3] New package: devour-11.1

---
 srcpkgs/devour/template | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 srcpkgs/devour/template

diff --git a/srcpkgs/devour/template b/srcpkgs/devour/template
new file mode 100644
index 000000000000..693217ea7b8b
--- /dev/null
+++ b/srcpkgs/devour/template
@@ -0,0 +1,13 @@
+# Template file for 'devour'
+pkgname=devour
+version=11.1
+revision=1
+build_style=gnu-makefile
+hostmakedepends="pkgconf xdo"
+makedepends="libX11-devel"
+short_desc="terminal swallower"
+maintainer="Visone Selektah <victortebar@gmail.com>"
+license="GPL-2.0-or-later"
+homepage="https://github.com/Visone-Selektah/devour"
+distfiles="https://github.com/Visone-Selektah/devour/archive/refs/tags/${version}.tar.gz"
+checksum=dad4b0b6585f7c6fbefaa9579bde88ea1f25e07ee168e4bebc4e61ca1c621db4

From 83a07c0279aa3a5d9789c1f79232507b2d1b17c1 Mon Sep 17 00:00:00 2001
From: Victor Tebar <victortebar@gmail.com>
Date: Sat, 7 May 2022 09:16:09 +0200
Subject: [PATCH 2/3]  devour: Fix typo and remove xdo

---
 srcpkgs/devour/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/devour/template b/srcpkgs/devour/template
index 693217ea7b8b..28e72aa8bb3b 100644
--- a/srcpkgs/devour/template
+++ b/srcpkgs/devour/template
@@ -3,9 +3,9 @@ pkgname=devour
 version=11.1
 revision=1
 build_style=gnu-makefile
-hostmakedepends="pkgconf xdo"
+hostmakedepends="pkgconf"
 makedepends="libX11-devel"
-short_desc="terminal swallower"
+short_desc="Terminal swallower"
 maintainer="Visone Selektah <victortebar@gmail.com>"
 license="GPL-2.0-or-later"
 homepage="https://github.com/Visone-Selektah/devour"

From 518aae1076210592243376f659c16a27fbe8013e Mon Sep 17 00:00:00 2001
From: Victor Tebar <victortebar@gmail.com>
Date: Sun, 8 May 2022 19:18:45 +0200
Subject: [PATCH 3/3] Change distfiles to upstream & add patches

---
 srcpkgs/devour/patches/devour-makefile.diff   | 32 +++++++++++++++++++
 .../patches/devour-shellalias-10.0.diff       | 18 +++++++++++
 srcpkgs/devour/template                       | 10 +++---
 3 files changed, 55 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/devour/patches/devour-makefile.diff
 create mode 100644 srcpkgs/devour/patches/devour-shellalias-10.0.diff

diff --git a/srcpkgs/devour/patches/devour-makefile.diff b/srcpkgs/devour/patches/devour-makefile.diff
new file mode 100644
index 000000000000..cb3a1c1f4787
--- /dev/null
+++ b/srcpkgs/devour/patches/devour-makefile.diff
@@ -0,0 +1,32 @@
+--- Makefile
++++ patches/Makefile
+@@ -6,21 +6,21 @@
+ CC     = cc
+ CFLAGS = -std=c11 -D_POSIX_C_SOURCE=200809L -Wall -Wextra -pedantic -O2
+ LDLIBS = -s -lX11
++PREFIX = /usr
+ 
+-BIN_DIR = /usr/local/bin
+-
+ SRC = devour.c
+ OBJ = devour.o
+ 
+ all: $(NAME)
+ $(NAME): $(OBJ)
+ install: all
+-	@mkdir -p $(BIN_DIR)
+-	@mv $(NAME) $(BIN_DIR)
+-	@rm -f $(OBJ)
+-	@echo Done moving the binary to ${DESTDIR}${BIN_DIR}
++	@mkdir -p ${DESTDIR}${PREFIX}/bin
++	@mv devour ${DESTDIR}${PREFIX}/bin
++	@rm -f ${OBJ}
++	@echo Done installing executable files to ${DESTDIR}${PREFIX}/bin
++
+ uninstall:
+-	@rm -f $(BIN_DIR)/$(NAME)
+-	@echo Done removing the binary from $(BIN_DIR)
++	@rm -f ${DESTDIR}${PREFIX}/bin/devour
++	@echo Done removing executable files from ${DESTDIR}${PREFIX}/bin
+ 
+ .PHONY: all install uninstall
diff --git a/srcpkgs/devour/patches/devour-shellalias-10.0.diff b/srcpkgs/devour/patches/devour-shellalias-10.0.diff
new file mode 100644
index 000000000000..e79365f7dd2f
--- /dev/null
+++ b/srcpkgs/devour/patches/devour-shellalias-10.0.diff
@@ -0,0 +1,18 @@
+--- devour.c
++++ patches/devour.c
+@@ -14,6 +14,7 @@
+   char *arg;
+   char cmd[1024] = {0};
+ 
++  strcat(cmd, "$SHELL -i -c '");
+   while ((arg = *++argv)) {
+     while ((arg_char = *arg++)) {
+       if (strchr(UNSAFE_CHARS, arg_char))
+@@ -22,6 +23,7 @@
+     }
+     strcat(cmd, " ");
+   }
++  strcat(cmd, "> /dev/null 2>&1; exit'");
+   system(cmd);
+ }
+ 
diff --git a/srcpkgs/devour/template b/srcpkgs/devour/template
index 28e72aa8bb3b..8fba8273adaf 100644
--- a/srcpkgs/devour/template
+++ b/srcpkgs/devour/template
@@ -1,13 +1,13 @@
 # Template file for 'devour'
 pkgname=devour
-version=11.1
+version=12
 revision=1
 build_style=gnu-makefile
-hostmakedepends="pkgconf"
+hostmakedepends="pkg-config"
 makedepends="libX11-devel"
 short_desc="Terminal swallower"
 maintainer="Visone Selektah <victortebar@gmail.com>"
 license="GPL-2.0-or-later"
-homepage="https://github.com/Visone-Selektah/devour"
-distfiles="https://github.com/Visone-Selektah/devour/archive/refs/tags/${version}.tar.gz"
-checksum=dad4b0b6585f7c6fbefaa9579bde88ea1f25e07ee168e4bebc4e61ca1c621db4
+homepage="https://github.com/salman-abedin/devour"
+distfiles="https://github.com/salman-abedin/devour/archive/refs/tags/${version}.tar.gz"
+checksum=5e9ddfee23d33557ba0b72affed6816d7b66ff06ef00aecdf0813b32f09b6eb4

  parent reply	other threads:[~2022-05-08 17:17 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-06 12:29 [PR PATCH] " Visone-Selektah
2022-05-07  1:28 ` [PR REVIEW] " abenson
2022-05-07  1:29 ` abenson
2022-05-07  7:14 ` [PR PATCH] [Updated] " Visone-Selektah
2022-05-07  7:18 ` [PR REVIEW] " Visone-Selektah
2022-05-07 20:53 ` paper42
2022-05-07 20:53 ` paper42
2022-05-07 21:20 ` Visone-Selektah
2022-05-07 21:21 ` Visone-Selektah
2022-05-08  8:56 ` paper42
2022-05-08 10:42 ` Visone-Selektah
2022-05-08 17:17 ` Visone-Selektah [this message]
2022-05-08 20:19 ` [PR PATCH] [Updated] " Visone-Selektah
2022-08-07  2:14 ` github-actions
2022-08-21  2:16 ` [PR PATCH] [Closed]: " github-actions

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=20220508171714.-Q4hmT9mT3BSjdd6TZN1oDD4ART7MIJcpZXxiZWEsmw@z \
    --to=visone-selektah@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).