sxhkd: unbreak build (#1779)
This commit is contained in:
parent
191ff7336a
commit
8b27186e2a
2 changed files with 25 additions and 8 deletions
22
srcpkgs/sxhkd/patches/fix-1779.patch
Normal file
22
srcpkgs/sxhkd/patches/fix-1779.patch
Normal file
|
@ -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
|
|
@ -1,20 +1,15 @@
|
||||||
# Template file for 'sxhkd'
|
# Template file for 'sxhkd'
|
||||||
pkgname=sxhkd
|
pkgname=sxhkd
|
||||||
version=0.5.5
|
version=0.5.5
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
hostmakedepends="git"
|
|
||||||
makedepends="libxcb-devel xcb-util-devel xcb-util-keysyms-devel"
|
makedepends="libxcb-devel xcb-util-devel xcb-util-keysyms-devel"
|
||||||
short_desc="Simple X HotKey Daemon"
|
short_desc="Simple X HotKey Daemon"
|
||||||
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
||||||
license="BSD"
|
license="BSD"
|
||||||
homepage="https://github.com/baskerville/sxhkd"
|
homepage="https://github.com/baskerville/sxhkd"
|
||||||
|
distfiles="${homepage}/archive/${version}.tar.gz"
|
||||||
do_fetch() {
|
checksum=e6699f77564e34a890d27f6c251e1ed29b04f5177e48290e7f02948497f04313
|
||||||
local url="git://github.com/baskerville/sxhkd"
|
|
||||||
msg_normal "Fetching source from $url ...\n"
|
|
||||||
git clone -b${version} ${url} ${pkgname}-${version}
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
|
|
Loading…
Reference in a new issue