iwgtk: update to 0.8, adopt

This commit is contained in:
Subhaditya Nath 2022-08-18 08:59:30 +05:30 committed by classabbyamp
parent f102a634da
commit d5439b7615
2 changed files with 9 additions and 37 deletions

View file

@ -1,29 +0,0 @@
https://patch-diff.githubusercontent.com/raw/J-Lentz/iwgtk/pull/14.patch
--- a/Makefile
+++ b/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 $<

View file

@ -1,14 +1,15 @@
# Template file for 'iwgtk'
pkgname=iwgtk
version=0.4
version=0.8
revision=1
build_style=gnu-makefile
hostmakedepends="glib-devel pkg-config"
makedepends="gtk+3-devel"
build_style=meson
hostmakedepends="scdoc pkg-config gettext"
makedepends="gtk4-devel qrencode-devel"
depends="iwd"
short_desc="GUI WiFi management utility to control iwd"
maintainer="caughtquick <me@caughtquick.tech>"
short_desc="Lightweight GTK frontend for iwd (WiFi)"
maintainer="Subhaditya Nath <sn03.general@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/J-Lentz/iwgtk/"
homepage="https://github.com/J-Lentz/iwgtk"
changelog="https://raw.githubusercontent.com/J-Lentz/iwgtk/master/CHANGELOG"
distfiles="https://github.com/J-Lentz/iwgtk/archive/refs/tags/v${version}.tar.gz"
checksum=71bb85546a55bf710052d4947f6be5f5a01033d04d2d14a85a7e734dd570657d
checksum=38e81e67004bbd246b6551ffc812b6ab019f84a7329f134bb8031eb61d9d732c