New package: xseticon-0.1

This commit is contained in:
Benjamin Slade 2020-02-18 16:49:17 -07:00 committed by Juan RP
parent 2a0962cd41
commit 7c0c7fcade
2 changed files with 50 additions and 0 deletions

View file

@ -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)

15
srcpkgs/xseticon/template Normal file
View file

@ -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 <slade@lambda-y.net>"
license="GPL-2.0-or-later"
homepage="https://github.com/xeyownt/xseticon"
distfiles="https://github.com/xeyownt/xseticon/archive/${version}.tar.gz"
checksum=d34c349ff09ea42393fb3bac3fd2be0e7b9a244388e2f4b32cc92636967a4a2c