New comment by sgn on void-packages repository https://github.com/void-linux/void-packages/pull/19285#issuecomment-588017851 Comment: This is what I come up with: ```diff From 24764b2b3967a2b11be9f8c5324f8a51893e00d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Wed, 19 Feb 2020 10:29:46 +0700 Subject: [PATCH] New package: xseticon-0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Đoàn Trần Công Danh --- srcpkgs/xseticon/patches/makefile.patch | 35 +++++++++++++++++++++++++ srcpkgs/xseticon/template | 15 +++++++++++ 2 files changed, 50 insertions(+) create mode 100644 srcpkgs/xseticon/patches/makefile.patch create mode 100644 srcpkgs/xseticon/template diff --git a/srcpkgs/xseticon/patches/makefile.patch b/srcpkgs/xseticon/patches/makefile.patch new file mode 100644 index 0000000000..744602136d --- /dev/null +++ b/srcpkgs/xseticon/patches/makefile.patch @@ -0,0 +1,35 @@ +diff --git Makefile Makefile +index 725f750..17a47c0 100644 +--- Makefile ++++ Makefile +@@ -9,22 +9,22 @@ GD_LIBS=-lgd + + LIBS=${GLIB_LIBS} ${XLIB_LIBS} ${GD_LIBS} + ++CFLAGS += $(GLIB_CFLAGS) ++CFLAGS += $(XLIB_CFLAGS) ++LDFLAGS := $(LIBS) $(LDFLAGS) ++ ++INSTALL = install ++ + PREFIX=/usr/local + BINDIR=$(PREFIX)/bin + + all: xseticon + +-xseticon.o: xseticon.c +- gcc ${GLIB_CFLAGS} ${XLIB_CFLAGS} -c $^ -o $@ +- +-xseticon: xseticon.o +- gcc ${LIBS} $^ -o $@ +- + .PHONY: clean + clean: + rm -f xseticon.o xseticon + + .PHONY: install + install: xseticon +- install -d $(BINDIR) +- install -m 755 xseticon $(BINDIR) ++ $(INSTALL) -d $(DESTDIR)$(BINDIR) ++ $(INSTALL) -m 755 xseticon $(DESTDIR)$(BINDIR) diff --git a/srcpkgs/xseticon/template b/srcpkgs/xseticon/template new file mode 100644 index 0000000000..ee231eb895 --- /dev/null +++ b/srcpkgs/xseticon/template @@ -0,0 +1,15 @@ +# Template file for 'xseticon' +pkgname=xseticon +version=0.1+bzr13 +revision=1 +wrksrc="xseticon-0.1-bzr13" +build_style=gnu-makefile +hostmakedepends="pkg-config" +makedepends="libXmu-devel gd-devel glib-devel" +make_use_env=yes +short_desc="Set the X11 window icon for any given window" +maintainer="Benjamin Slade " +license="GPL-2.0-or-later" +homepage="https://github.com/xeyownt/xseticon" +distfiles="https://github.com/xeyownt/xseticon/archive/${version}.tar.gz" +checksum=d34c349ff09ea42393fb3bac3fd2be0e7b9a244388e2f4b32cc92636967a4a2c -- 2.25.1.497.g3043dbfab8 ```