diff --git a/srcpkgs/unclutter-xfixes/patches/make.patch b/srcpkgs/unclutter-xfixes/patches/make.patch new file mode 100644 index 00000000000..0e4c1566311 --- /dev/null +++ b/srcpkgs/unclutter-xfixes/patches/make.patch @@ -0,0 +1,13 @@ +--- Makefile.orig ++++ Makefile +@@ -30 +29,0 @@ all: clean $(TARGET) mans +-.PHONY: $(TARGET) +@@ -32 +31 @@ $(TARGET): $(OBJS) +- $(CC) $(CFLAGS) -o $(TARGET) $(OBJS) $(LIBS) ++ $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) +@@ -35 +34 @@ $(ODIR)/%.o: $(SDIR)/%.c $(INCS) +- $(CC) -D'__VERSION="$(shell git describe --all --long --always)"' $(CFLAGS) -o $@ -c $< ++ $(CC) $(CFLAGS) -Iinclude -o $@ -c $< +@@ -38 +37 @@ $(ODIR)/%.o: $(SDIR)/%.c $(INCS) +-install: $(TARGET) ++install: diff --git a/srcpkgs/unclutter-xfixes/template b/srcpkgs/unclutter-xfixes/template new file mode 100644 index 00000000000..a519ae33542 --- /dev/null +++ b/srcpkgs/unclutter-xfixes/template @@ -0,0 +1,17 @@ +# Template file for 'unclutter-xfixes' +pkgname=unclutter-xfixes +version=1.2 +revision=1 +build_style=gnu-makefile +make_install_args="PREFIX=/usr/bin" +hostmakedepends="pkg-config asciidoc" +makedepends="libXfixes-devel libXi-devel libev-devel" +short_desc="Rewrite of the popular tool unclutter using the libXfixes" +maintainer="Duncaen " +license="MIT" +homepage="https://github.com/Airblader/unclutter-xfixes" +distfiles="https://github.com/Airblader/unclutter-xfixes/archive/v${version}.tar.gz" +checksum=addaf8fa4e7381a95ea2279eb47be675b52eb43efb83f7a78ac9044e53121d4a +conflicts="unclutter>=0" + +CFLAGS="-D__VERSION=\\\"$version\\\""