summaryrefslogtreecommitdiff
path: root/testing/wpa_supplicant_gui
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-27 00:01:57 +0000
committerroot <root@rshg054.dnsready.net>2012-06-27 00:01:57 +0000
commitc77c7fc60c48c9aaa8f915eb112405e8879e46aa (patch)
tree46509cb375dc9d89676ab0d115c35629fc7326ae /testing/wpa_supplicant_gui
parent9a6b691757346035549dbd12d1323301d04a6675 (diff)
Wed Jun 27 00:01:57 UTC 2012
Diffstat (limited to 'testing/wpa_supplicant_gui')
-rw-r--r--testing/wpa_supplicant_gui/PKGBUILD32
-rw-r--r--testing/wpa_supplicant_gui/compile-fix.patch14
2 files changed, 46 insertions, 0 deletions
diff --git a/testing/wpa_supplicant_gui/PKGBUILD b/testing/wpa_supplicant_gui/PKGBUILD
new file mode 100644
index 000000000..e8ad8125a
--- /dev/null
+++ b/testing/wpa_supplicant_gui/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 162332 2012-06-25 10:11:07Z heftig $
+# Maintainer: Thomas Bächler <thomas@archlinux.org>
+
+pkgname=wpa_supplicant_gui
+pkgver=1.0
+pkgrel=1
+pkgdesc="A Qt frontend to wpa_supplicant"
+url="http://hostap.epitest.fi/wpa_supplicant"
+arch=('i686' 'x86_64')
+depends=('qt' "wpa_supplicant=$pkgver")
+license=('GPL')
+source=("http://hostap.epitest.fi/releases/wpa_supplicant-$pkgver.tar.gz"
+ compile-fix.patch)
+sha256sums=('91d41d473a5aafa2e25dd6577ebda975c4d4a3188850a53e31feaf7c04482b9c'
+ '044be1032faf93c5f0abf22d7ae77dc0d1d1fef0c2c30646d54950b86601709f')
+
+build() {
+ cd wpa_supplicant-${pkgver}
+ patch -p1 <../compile-fix.patch
+ cd wpa_supplicant/wpa_gui-qt4
+ qmake
+ make
+}
+
+package() {
+ cd "${srcdir}/wpa_supplicant-${pkgver}/wpa_supplicant/wpa_gui-qt4"
+ install -Dm755 wpa_gui "${pkgdir}/usr/sbin/wpa_gui"
+ install -Dm644 icons/wpa_gui.svg "${pkgdir}/usr/share/pixmaps/wpa_gui.svg"
+ install -Dm644 wpa_gui.desktop "${pkgdir}/usr/share/applications/wpa_gui.desktop"
+ install -Dm644 "${srcdir}/wpa_supplicant-${pkgver}/wpa_supplicant/doc/docbook/wpa_gui.8" \
+ "${pkgdir}/usr/share/man/man8/wpa_gui.8"
+}
diff --git a/testing/wpa_supplicant_gui/compile-fix.patch b/testing/wpa_supplicant_gui/compile-fix.patch
new file mode 100644
index 000000000..3303b3699
--- /dev/null
+++ b/testing/wpa_supplicant_gui/compile-fix.patch
@@ -0,0 +1,14 @@
+diff -u -r wpa_supplicant-1.0/wpa_supplicant/wpa_gui-qt4/wpagui.cpp wpa_supplicant-1.0-fix/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
+--- wpa_supplicant-1.0/wpa_supplicant/wpa_gui-qt4/wpagui.cpp 2012-05-09 23:56:09.000000000 +0200
++++ wpa_supplicant-1.0-fix/wpa_supplicant/wpa_gui-qt4/wpagui.cpp 2012-06-25 12:06:46.045261398 +0200
+@@ -12,10 +12,8 @@
+ * See README and COPYING for more details.
+ */
+
+-#ifdef __MINGW32__
+ /* Need to get getopt() */
+ #include <unistd.h>
+-#endif
+
+ #ifdef CONFIG_NATIVE_WINDOWS
+ #include <windows.h>