diff --git a/srcpkgs/xseticon/patches/fix-makefile.patch b/srcpkgs/xseticon/patches/fix-makefile.patch new file mode 100644 index 00000000000..744602136d1 --- /dev/null +++ b/srcpkgs/xseticon/patches/fix-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 00000000000..130726aa45c --- /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 +make_use_env=yes +hostmakedepends="pkg-config" +makedepends="libXmu-devel gd-devel glib-devel" +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