Browse Source

unclutter-xfixes: update to 1.4.

pull/5089/merge
Duncaen 3 years ago
parent
commit
6371033984
  1. 29
      srcpkgs/unclutter-xfixes/patches/make.patch
  2. 11
      srcpkgs/unclutter-xfixes/template

29
srcpkgs/unclutter-xfixes/patches/make.patch

@ -1,29 +0,0 @@
--- Makefile.orig
+++ Makefile
@@ -12,14 +12,14 @@
CC = gcc
LD = $(CC)
-CPPFLAGS += -D'__VERSION="$(shell git describe --all --long --always)"' "-I$(IDIR)"
+CPPFLAGS += "-I$(IDIR)"
CFLAGS += -std=gnu99
CFLAGS += -Wall -Wundef -Wshadow -Wformat-security
-LDFLAGS += $(shell pkg-config --libs x11 xi xfixes)
+LIBS += $(shell pkg-config --libs x11 xi xfixes)
# libev has no pkg-config support
-LDFLAGS += -lev
+LIBS += -lev
INCS = $(wildcard $(IDIR)/*.h)
SRCS = $(wildcard $(SDIR)/*.c)
@@ -34,7 +34,7 @@
.PHONY: $(TARGET)
$(TARGET): $(OBJS)
- $(LD) $(OBJS) $(LDFLAGS) -o "$(TARGET)"
+ $(CC) $(LDFLAGS) -o "$(TARGET)" $(OBJS) $(LIBS)
$(ODIR)/%.o: $(SDIR)/%.c $(INCS)
$(CC) $(CPPFLAGS) $(CFLAGS) -o "$@" -c "$<"

11
srcpkgs/unclutter-xfixes/template

@ -1,8 +1,9 @@
# Template file for 'unclutter-xfixes'
pkgname=unclutter-xfixes
version=1.3
version=1.4
revision=1
build_style=gnu-makefile
make_use_env=yes
hostmakedepends="pkg-config asciidoc"
makedepends="libXfixes-devel libXi-devel libev-devel"
short_desc="Rewrite of the popular tool unclutter using the libXfixes"
@ -10,13 +11,13 @@ maintainer="Duncaen <duncaen@voidlinux.eu>"
license="MIT"
homepage="https://github.com/Airblader/unclutter-xfixes"
distfiles="https://github.com/Airblader/unclutter-xfixes/archive/v${version}.tar.gz"
checksum=8726b2e447de9d43bbd979ad6581c6fd34ad76ef82a6e1c7e1ad2ca3247565b2
checksum=f28cd690cfa184fddd3961dda49d14e114dccd5e70d9bac8ca5ebcd5124985b3
conflicts="unclutter>=0"
CPPFLAGS="-D__VERSION=\\\"$version\\\""
pre_build() {
sed -i Makefile -e "s;CC = gcc;CC = $CC;"
sed -e '/^CC/d' \
-e '/^.PHONY: $(TARGET)/d' \
-i Makefile
}
post_install() {

Loading…
Cancel
Save