From: cinerea0 <cinerea0@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: kew-1.7.1
Date: Wed, 22 Nov 2023 23:20:54 +0100 [thread overview]
Message-ID: <20231122222054.yt1bx6JG8iNivirlpTCthIRYNUG3t3hJYHSHreGI37Q@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-47345@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 562 bytes --]
There is an updated pull request by cinerea0 against master on the void-packages repository
https://github.com/cinerea0/void-packages kew
https://github.com/void-linux/void-packages/pull/47345
New package: kew-1.7.1
#### 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**
A patch file from https://github.com/void-linux/void-packages/pull/47345.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kew-47345.patch --]
[-- Type: text/x-diff, Size: 3615 bytes --]
From 108e54eef1aed0c019504584710532040eaae277 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Wed, 22 Nov 2023 17:20:39 -0500
Subject: [PATCH] New package: kew-1.7.1
---
srcpkgs/kew/patches/update-makefile.patch | 39 +++++++++++++++++++++++
srcpkgs/kew/template | 15 +++++++++
2 files changed, 54 insertions(+)
create mode 100644 srcpkgs/kew/patches/update-makefile.patch
create mode 100644 srcpkgs/kew/template
diff --git a/srcpkgs/kew/patches/update-makefile.patch b/srcpkgs/kew/patches/update-makefile.patch
new file mode 100644
index 0000000000000..b6d2caf781bfa
--- /dev/null
+++ b/srcpkgs/kew/patches/update-makefile.patch
@@ -0,0 +1,39 @@
+diff --git a/Makefile b/Makefile
+index 3701f01fb17..7559bd303f5 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,14 +1,17 @@
+ CC = gcc
+ PKG_CONFIG ?= pkg-config
+-CFLAGS = -I/usr/include/vorbis -I/usr/include/opus -I/usr/include/stb -Iinclude/imgtotxt/ext -Iinclude/imgtotxt -I/usr/include/ffmpeg -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libavformat -Iinclude/miniaudio -O1 -g $(shell $(PKG_CONFIG) --cflags gio-2.0 chafa libavformat fftw3f)
+-LIBS = -lpthread -lrt -pthread -lm -lfreeimage -lglib-2.0 -lopus -lopusfile -lvorbisfile $(shell $(PKG_CONFIG) --libs gio-2.0 chafa libavformat fftw3f)
++CFLAGS = -I/usr/include/stb -Iinclude/imgtotxt/ext -Iinclude/imgtotxt -I/usr/include/ffmpeg -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libavformat -Iinclude/miniaudio -O2 -g $(shell $(PKG_CONFIG) --cflags gio-2.0 chafa libavformat fftw3f opus opusfile vorbis)
++CFLAGS += -fstack-protector-strong -Wformat -Werror=format-security -fPIE -fstack-protector -fstack-protector-strong -D_FORTIFY_SOURCE=2
++CFLAGS += -Wall -Wpointer-arith
++LIBS = -latomic -lpthread -lrt -pthread -lm -lfreeimage -lglib-2.0 $(shell $(PKG_CONFIG) --libs gio-2.0 chafa libavformat fftw3f opus opusfile vorbisfile)
++LDFLAGS = -pie -Wl,-z,relro
+
+ OBJDIR = src/obj
+ PREFIX = /usr
+ SRCS = src/soundcommon.c src/player.c src/soundopus.c src/soundvorbis.c src/soundbuiltin.c src/soundpcm.c src/mpris.c src/playerops.c src/volume.c src/cutils.c src/soundgapless.c src/songloader.c src/file.c src/chafafunc.c src/cache.c src/metadata.c src/playlist.c src/stringfunc.c src/term.c src/settings.c src/albumart.c src/visuals.c src/kew.c
+ OBJS = $(SRCS:src/%.c=$(OBJDIR)/%.o)
+
+-MAN_PAGE = kew.1
++MAN_PAGE = kew.1
+ MAN_DIR ?= $(PREFIX)/share/man
+
+ all: kew
+@@ -17,7 +20,7 @@ $(OBJDIR)/%.o: src/%.c Makefile | $(OBJDIR)
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+ $(OBJDIR)/write_ascii.o: include/imgtotxt/write_ascii.c Makefile | $(OBJDIR)
+- $(CC) $(CFLAGS) -c -o $@ $<
++ $(CC) $(CFLAGS) -c -o $@ $< $(LDFLAGS)
+
+ $(OBJDIR):
+ mkdir -p $(OBJDIR)
+@@ -40,3 +43,4 @@ uninstall:
+ .PHONY: clean
+ clean:
+ rm -rf $(OBJDIR) kew
++
diff --git a/srcpkgs/kew/template b/srcpkgs/kew/template
new file mode 100644
index 0000000000000..d3b11a1776c33
--- /dev/null
+++ b/srcpkgs/kew/template
@@ -0,0 +1,15 @@
+# Template file for 'kew'
+pkgname=kew
+version=1.7.1
+revision=1
+build_style=gnu-makefile
+make_use_env=yes
+hostmakedepends="pkg-config"
+makedepends="chafa-devel ffmpeg-devel fftw-devel freeimage-devel libglib-devel
+ libogg-devel libvorbis-devel opus-devel opusfile-devel"
+short_desc="Command-line music player"
+maintainer="cinerea0 <cinerea0@protonmail.com>"
+license="GPL-2.0-only"
+homepage="https://github.com/ravachol/kew"
+distfiles="https://github.com/ravachol/kew/archive/refs/tags/v${version}.tar.gz"
+checksum=b28bc3488406bb975da4a313120a54c001358622db41a16df08867892833342d
next prev parent reply other threads:[~2023-11-22 22:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-22 2:59 [PR PATCH] " cinerea0
2023-11-22 3:20 ` [PR PATCH] [Updated] " cinerea0
2023-11-22 22:20 ` cinerea0 [this message]
2024-02-21 1:44 ` github-actions
2024-03-04 21:00 ` [PR PATCH] [Updated] " cinerea0
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=20231122222054.yt1bx6JG8iNivirlpTCthIRYNUG3t3hJYHSHreGI37Q@z \
--to=cinerea0@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).