From 812da012d47c8236464377474331d4177d2514c9 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 1 Jun 2023 17:42:52 +0200 Subject: [PATCH] New package: linux-wifi-hotspot-4.5.0 --- .../linux-wifi-hotspot/patches/makefile.patch | 24 +++++++++++++++++++ srcpkgs/linux-wifi-hotspot/template | 19 +++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 srcpkgs/linux-wifi-hotspot/patches/makefile.patch create mode 100644 srcpkgs/linux-wifi-hotspot/template diff --git a/srcpkgs/linux-wifi-hotspot/patches/makefile.patch b/srcpkgs/linux-wifi-hotspot/patches/makefile.patch new file mode 100644 index 000000000000..9391043aae17 --- /dev/null +++ b/srcpkgs/linux-wifi-hotspot/patches/makefile.patch @@ -0,0 +1,24 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -1,7 +1,7 @@ + CC=gcc + PKGCONFIG = $(shell which pkg-config) + +-CFLAGS=`pkg-config --cflags gtk+-3.0` ++CFLAGS_PKGCONF=`pkg-config --cflags gtk+-3.0` + LIBS=`pkg-config --libs gtk+-3.0 --libs x11` -lstdc++ -lpng -lqrencode + + APP_NAME="wihotspot" +@@ -32,10 +32,10 @@ resources.c: ui/glade/wifih.gresource.xml ui/glade/wifih.ui + @$(MAKE) -f $(THIS_FILE) wihotspot-gui + + $(ODIR)/%.o: ui/%.c +- $(CC) -c -o $@ $< $(CFLAGS) ++ $(CC) -c -o $@ $< $(CFLAGS) $(CFLAGS_PKGCONF) + + $(ODIR)/%.o: ui/%.cpp +- g++ -c -o $@ $< ++ $(CXX) -c -o $@ $< $(CFLAGS) + + wihotspot-gui: $(OBJ) + $(CC) -o $(ODIR)/$@ $^ $(CFLAGS) $(LIBS) \ No newline at end of file diff --git a/srcpkgs/linux-wifi-hotspot/template b/srcpkgs/linux-wifi-hotspot/template new file mode 100644 index 000000000000..a2c03b268264 --- /dev/null +++ b/srcpkgs/linux-wifi-hotspot/template @@ -0,0 +1,19 @@ +# Template file for 'linux-wifi-hotspot' +pkgname=linux-wifi-hotspot +version=4.5.0 +revision=1 +build_style=gnu-makefile +hostmakedepends="pkg-config which glib-devel" +makedepends="gtk+3-devel libpng-devel qrencode-devel" +depends="bash dnsmasq hostapd iproute2 iptables iw procps-ng util-linux" +short_desc="Feature-rich wifi hotspot creator" +maintainer="Bnyro " +license="BSD-2-Clause" +homepage="https://github.com/lakinduakash/linux-wifi-hotspot" +distfiles="https://github.com/lakinduakash/linux-wifi-hotspot/archive/refs/tags/v${version}.tar.gz" +checksum=9e4222b7d3129347b01eef711911ec87c9a04e20efd12d88565f682a14eb91da +conflicts="create_ap" + +post_install() { + vlicense LICENSE +}