diff --git a/srcpkgs/sxhkd/patches/fix-1779.patch b/srcpkgs/sxhkd/patches/fix-1779.patch new file mode 100644 index 0000000000..785647b137 --- /dev/null +++ b/srcpkgs/sxhkd/patches/fix-1779.patch @@ -0,0 +1,22 @@ +--- Makefile.orig ++++ Makefile +@@ -3,8 +3,8 @@ + + CC ?= gcc + LIBS = -lm -lxcb -lxcb-keysyms +-CFLAGS += -std=c99 -pedantic -Wall -Wextra -I$(PREFIX)/include +-CFLAGS += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\" ++override CFLAGS += -std=c99 -pedantic -Wall -Wextra -I$(PREFIX)/include ++override CFLAGS += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\" + LDFLAGS += -L$(PREFIX)/lib + + PREFIX ?= /usr/local +@@ -14,8 +14,6 @@ + SRC = $(wildcard *.c) + OBJ = $(SRC:.c=.o) + +-all: CFLAGS += -Os +-all: LDFLAGS += -s + all: $(NAME) + + debug: CFLAGS += -O0 -g -DDEBUG diff --git a/srcpkgs/sxhkd/template b/srcpkgs/sxhkd/template index 4b7dfbe0b6..1db5d5af7c 100644 --- a/srcpkgs/sxhkd/template +++ b/srcpkgs/sxhkd/template @@ -1,20 +1,15 @@ # Template file for 'sxhkd' pkgname=sxhkd version=0.5.5 -revision=1 +revision=2 build_style=gnu-makefile -hostmakedepends="git" makedepends="libxcb-devel xcb-util-devel xcb-util-keysyms-devel" short_desc="Simple X HotKey Daemon" maintainer="Eivind Uggedal " license="BSD" homepage="https://github.com/baskerville/sxhkd" - -do_fetch() { - local url="git://github.com/baskerville/sxhkd" - msg_normal "Fetching source from $url ...\n" - git clone -b${version} ${url} ${pkgname}-${version} -} +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=e6699f77564e34a890d27f6c251e1ed29b04f5177e48290e7f02948497f04313 post_install() { vlicense LICENSE