summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorarcan1s2015-06-08 19:56:42 +0300
committerarcan1s2015-06-08 19:56:42 +0300
commit4df0d1096335bfa8c5fcc53321e196fab995fd03 (patch)
tree028ecb03171671074596aef300239c88bad30d80
downloadaur-4df0d1096335bfa8c5fcc53321e196fab995fd03.tar.gz
upload netctl-gui
-rw-r--r--.SRCINFO53
-rw-r--r--PKGBUILD98
-rw-r--r--netctl-gui.install12
-rw-r--r--netctlgui-helper.install11
-rw-r--r--plasma-netctl-gui.install14
5 files changed, 188 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6d53b221f79
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,53 @@
+pkgbase = netctl-gui
+ pkgdesc = Qt4/Qt5 GUI for netctl. Also provides a widget for KDE
+ pkgver = 1.4.5
+ pkgrel = 1
+ url = http://arcanis.name/projects/netctl-gui
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ makedepends = extra-cmake-modules
+ makedepends = plasma-framework
+ makedepends = qt5-tools
+ source = https://github.com/arcan1s/netctl-gui/releases/download/V.1.4.5/netctl-gui-1.4.5-src.tar.xz
+ md5sums = 9c1ddad6163290ed3fb52c3d233e1ee3
+
+pkgname = libnetctlgui
+ pkgdesc = Qt5 library which interacts with netctl. A part of netctl-gui
+ depends = netctl
+ depends = qt5-base
+ optdepends = netctlgui-helper: DBus helper daemon
+ optdepends = sudo: sudo support
+ optdepends = wpa_supplicant: wifi support
+ provides = libnetctlgui-qt4
+ conflicts = libnetctlgui-qt4
+
+pkgname = netctlgui-helper
+ pkgdesc = Helper daemon for netctl-gui. A part of netctl-gui
+ install = netctlgui-helper.install
+ depends = libnetctlgui=1.4.5
+ provides = netctlgui-helper-qt4
+ conflicts = netctlgui-helper-qt4
+ backup = etc/netctl-gui.conf
+ backup = etc/dbus-1/system.d/org.netctlgui.helper.conf
+
+pkgname = netctl-gui
+ pkgdesc = Qt5 graphical front-end for netctl. A part of netctl-gui
+ install = netctl-gui.install
+ depends = libnetctlgui=1.4.5
+ depends = xdg-utils
+ optdepends = plasma-netctl-gui: KF5 widget
+ optdepends = netctlgui-helper: DBus helper daemon
+ provides = netctl-gui-qt4
+ conflicts = netctl-gui-qt4
+
+pkgname = plasma5-applet-netctl-gui
+ pkgdesc = A KF5 plasmoid, which interacts with netctl. A part of netctl-gui
+ install = plasma-netctl-gui.install
+ depends = netctl
+ depends = plasma-framework
+ optdepends = netctlgui-helper: DBus helper daemon
+ optdepends = netctl-gui: graphical front-end
+ optdepends = sudo: sudo support
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7d68f180088
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,98 @@
+# Maintainer: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com>
+
+pkgbase=netctl-gui
+pkgname=('libnetctlgui' 'netctlgui-helper' 'netctl-gui'
+ 'plasma5-applet-netctl-gui')
+pkgver=1.4.5
+pkgrel=1
+pkgdesc="Qt4/Qt5 GUI for netctl. Also provides a widget for KDE"
+arch=('i686' 'x86_64')
+url="http://arcanis.name/projects/netctl-gui"
+license=('GPL3')
+makedepends=('cmake' 'extra-cmake-modules' 'plasma-framework' 'qt5-tools')
+source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${pkgbase}-${pkgver}-src.tar.xz")
+md5sums=('9c1ddad6163290ed3fb52c3d233e1ee3')
+
+prepare() {
+ rm -rf "${srcdir}/build-"{plasmoid,qt5}
+ mkdir "${srcdir}/build-"{plasmoid,qt5}
+}
+
+
+build() {
+ cd "${srcdir}/build-plasmoid"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
+ -DBUILD_GUI:BOOL=0 \
+ -DBUILD_LIBRARY:BOOL=0 \
+ -DBUILD_HELPER:BOOL=0 \
+ "../${pkgbase}"
+ make
+
+ cd "${srcdir}/build-qt5"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_DATAENGINE:BOOL=0 \
+ -DBUILD_PLASMOID:BOOL=0 \
+ -DUSE_CAPABILITIES:BOOL=0 \
+ "../${pkgbase}"
+ make
+}
+
+
+package_plasma5-applet-netctl-gui() {
+ pkgdesc="A KF5 plasmoid, which interacts with netctl. A part of netctl-gui"
+ depends=('netctl' 'plasma-framework')
+ optdepends=('netctlgui-helper: DBus helper daemon'
+ 'netctl-gui: graphical front-end'
+ 'sudo: sudo support')
+ install="plasma-netctl-gui.install"
+
+ cd "${srcdir}/build-plasmoid"
+ make DESTDIR="${pkgdir}" install
+}
+
+
+package_libnetctlgui() {
+ pkgdesc="Qt5 library which interacts with netctl. A part of netctl-gui"
+ depends=('netctl' 'qt5-base')
+ optdepends=('netctlgui-helper: DBus helper daemon'
+ 'sudo: sudo support'
+ 'wpa_supplicant: wifi support')
+ provides=('libnetctlgui-qt4')
+ conflicts=('libnetctlgui-qt4')
+
+ cd "${srcdir}/build-qt5/netctlgui"
+ make DESTDIR="${pkgdir}" install
+}
+
+
+package_netctlgui-helper() {
+ pkgdesc="Helper daemon for netctl-gui. A part of netctl-gui"
+ depends=("libnetctlgui=${pkgver}")
+ provides=('netctlgui-helper-qt4')
+ conflicts=('netctlgui-helper-qt4')
+ backup=('etc/netctl-gui.conf'
+ 'etc/dbus-1/system.d/org.netctlgui.helper.conf')
+ install="netctlgui-helper.install"
+
+ cd "${srcdir}/build-qt5/helper"
+ make DESTDIR="${pkgdir}" install
+}
+
+
+package_netctl-gui() {
+ pkgdesc="Qt5 graphical front-end for netctl. A part of netctl-gui"
+ depends=("libnetctlgui=${pkgver}" 'xdg-utils')
+ optdepends=('plasma-netctl-gui: KF5 widget'
+ 'netctlgui-helper: DBus helper daemon')
+ provides=('netctl-gui-qt4')
+ conflicts=('netctl-gui-qt4')
+ install="netctl-gui.install"
+
+ cd "${srcdir}/build-qt5/gui"
+ make DESTDIR="${pkgdir}" install
+ cd "${srcdir}/build-qt5/resources"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/netctl-gui.install b/netctl-gui.install
new file mode 100644
index 00000000000..9fae526f0a8
--- /dev/null
+++ b/netctl-gui.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor 2> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ post_install "$1"
+}
diff --git a/netctlgui-helper.install b/netctlgui-helper.install
new file mode 100644
index 00000000000..7d11847293d
--- /dev/null
+++ b/netctlgui-helper.install
@@ -0,0 +1,11 @@
+post_install() {
+ setcap cap_setuid=ep usr/bin/netctlgui-helper 2>/dev/null || chmod +s usr/bin/netctlgui-helper
+ cat << EOF
+Note: users should be in network group if you want to get them access to the system bus
+See http://arcanis.name/devs/netctl-gui-security-notes.html#helper
+EOF
+}
+
+post_upgrade() {
+ post_install "$1"
+}
diff --git a/plasma-netctl-gui.install b/plasma-netctl-gui.install
new file mode 100644
index 00000000000..226f89e5d04
--- /dev/null
+++ b/plasma-netctl-gui.install
@@ -0,0 +1,14 @@
+post_install() {
+ cat << EOF
+Update plasmoids...
+EOF
+ kbuildsycoca5 > /dev/null 2>&1
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ post_install "$1"
+}