From 6066e4e41b92382db9b9bdc801310256aaf5dfe6 Mon Sep 17 00:00:00 2001 From: Abhijit Date: Tue, 4 May 2021 15:27:28 -0700 Subject: [PATCH] New Package: iwgtk 0.4 --- srcpkgs/iwgtk/patches/fix-makefile.patch | 27 ++++++++++++++++++++++++ srcpkgs/iwgtk/template | 14 ++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 srcpkgs/iwgtk/patches/fix-makefile.patch create mode 100644 srcpkgs/iwgtk/template diff --git a/srcpkgs/iwgtk/patches/fix-makefile.patch b/srcpkgs/iwgtk/patches/fix-makefile.patch new file mode 100644 index 000000000000..c0e04d07e988 --- /dev/null +++ b/srcpkgs/iwgtk/patches/fix-makefile.patch @@ -0,0 +1,27 @@ +--- Makefile.orig ++++ Makefile +@@ -1,8 +1,8 @@ +-CC=gcc +-CFLAGS=`pkg-config --cflags gtk+-3.0` ++CC?=gcc ++CCINCS=`pkg-config --cflags gtk+-3.0` + LDLIBS=`pkg-config --libs gtk+-3.0` + +-prefix=/usr/local ++prefix?=$(PREFIX) + exec_prefix=$(prefix) + bindir=$(exec_prefix)/bin + datarootdir=$(prefix)/share +@@ -23,10 +23,10 @@ + .PHONY : clean install uninstall + + iwgtk : $(objects) +- $(CC) $(CFLAGS) -o $@ $^ $(LDLIBS) ++ $(CC) $(CCINCS) $(CFLAGS) -o $@ $^ $(LDLIBS) + + %.o : $(srcdir)/%.c $(headers) +- $(CC) -c $(CFLAGS) -o $@ $< ++ $(CC) -c $(CCINCS) $(CFLAGS) -o $@ $< + + $(srcdir)/icons.c : icons.gresource.xml $(icons) + glib-compile-resources --target=$@ --sourcedir=icons --generate-source $< diff --git a/srcpkgs/iwgtk/template b/srcpkgs/iwgtk/template new file mode 100644 index 000000000000..a9b23b80f0ca --- /dev/null +++ b/srcpkgs/iwgtk/template @@ -0,0 +1,14 @@ +# Template file for 'iwgtk' +pkgname=iwgtk +version=0.4 +revision=1 +build_style=gnu-makefile +hostmakedepends="glib-devel pkg-config" +makedepends="gtk+3-devel" +depends="iwd" +short_desc="GUI WiFi management utility to control iwd" +maintainer="caughtquick " +license="GPL-3.0-or-later" +homepage="https://github.com/J-Lentz/iwgtk/" +distfiles="https://github.com/J-Lentz/iwgtk/archive/refs/tags/v${version}.tar.gz" +checksum=71bb85546a55bf710052d4947f6be5f5a01033d04d2d14a85a7e734dd570657d