sxhkd: unbreak build (#1779)

This commit is contained in:
beefcurtains 2015-06-24 07:12:57 +00:00
parent 191ff7336a
commit 8b27186e2a
2 changed files with 25 additions and 8 deletions

View 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

View File

@ -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 <eivind@uggedal.com>"
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