summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorarcan1s2015-06-08 19:50:38 +0300
committerarcan1s2015-06-08 19:50:38 +0300
commitc89d0b5079e7adad2a5ca2ea154f5e5428d2c206 (patch)
tree2b4a371bf4bba6ac36f58bb895661e46200eadac
downloadaur-c89d0b5079e7adad2a5ca2ea154f5e5428d2c206.tar.gz
upload netctl-gui-qt4
-rw-r--r--.SRCINFO51
-rw-r--r--PKGBUILD101
-rw-r--r--kdeplasma-applets-netctl-gui.install14
-rw-r--r--netctl-gui.install12
-rw-r--r--netctlgui-helper.install11
5 files changed, 189 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..467b42b97f5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,51 @@
+pkgbase = netctl-gui-qt4
+ pkgdesc = Qt4 GUI for netctl. Also provides a widget for KDE4
+ pkgver = 1.4.5
+ pkgrel = 1
+ url = http://arcanis.name/projects/netctl-gui
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ makedepends = automoc4
+ makedepends = cmake
+ makedepends = kdelibs
+ 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-qt4
+ pkgdesc = Qt4 library which interacts with netctl. A part of netctl-gui
+ depends = netctl
+ depends = qt4
+ optdepends = netctlgui-helper-qt4: DBus helper daemon
+ optdepends = sudo: sudo support
+ optdepends = wpa_supplicant: wifi support
+ provides = libnetctlgui
+ conflicts = libnetctlgui
+
+pkgname = netctlgui-helper-qt4
+ pkgdesc = Helper daemon for netctl-gui. A part of netctl-gui
+ install = netctlgui-helper.install
+ depends = libnetctlgui-qt4=1.4.5
+ provides = netctlgui-helper
+ conflicts = netctlgui-helper
+ backup = etc/netctl-gui.conf
+ backup = etc/dbus-1/system.d/org.netctlgui.helper.conf
+
+pkgname = netctl-gui-qt4
+ pkgdesc = Qt4 graphical front-end for netctl. A part of netctl-gui
+ install = netctl-gui.install
+ depends = libnetctlgui-qt4=1.4.5
+ optdepends = kdeplasma-applets-netctl-gui: KDE widget
+ optdepends = netctlgui-helper-qt4: DBus helper daemon
+ provides = netctl-gui
+ conflicts = netctl-gui
+
+pkgname = kdeplasma-applets-netctl-gui
+ pkgdesc = A KDE4 plasmoid, which interacts with netctl. A part of netctl-gui
+ install = kdeplasma-applets-netctl-gui.install
+ depends = netctl
+ depends = kdebase-workspace
+ optdepends = netctlgui-helper-qt4: DBus helper daemon
+ optdepends = netctl-gui-qt4: graphical front-end
+ optdepends = sudo: sudo support
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dedbe4de430
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,101 @@
+# Maintainer: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com>
+
+pkgbase=netctl-gui-qt4
+_pkgbase=netctl-gui
+pkgname=('libnetctlgui-qt4' 'netctlgui-helper-qt4' 'netctl-gui-qt4'
+ 'kdeplasma-applets-netctl-gui')
+pkgver=1.4.5
+pkgrel=1
+pkgdesc="Qt4 GUI for netctl. Also provides a widget for KDE4"
+arch=('i686' 'x86_64')
+url="http://arcanis.name/projects/netctl-gui"
+license=('GPL3')
+makedepends=('automoc4' 'cmake' 'kdelibs')
+source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${_pkgbase}-${pkgver}-src.tar.xz")
+md5sums=('9c1ddad6163290ed3fb52c3d233e1ee3')
+
+
+prepare() {
+ rm -rf "${srcdir}/build-"{plasmoid,qt4}
+ mkdir "${srcdir}/build-"{plasmoid,qt4}
+}
+
+
+build() {
+ cd "${srcdir}/build-plasmoid"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_GUI:BOOL=0 \
+ -DBUILD_LIBRARY:BOOL=0 \
+ -DBUILD_HELPER:BOOL=0 \
+ -DBUILD_KDE4:BOOL=1 \
+ "../${_pkgbase}"
+ make
+
+ cd "${srcdir}/build-qt4"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_DATAENGINE:BOOL=0 \
+ -DBUILD_PLASMOID:BOOL=0 \
+ -DUSE_CAPABILITIES:BOOL=0 \
+ -DUSE_QT5:BOOL=0 \
+ "../${_pkgbase}"
+ make
+}
+
+
+package_kdeplasma-applets-netctl-gui() {
+ pkgdesc="A KDE4 plasmoid, which interacts with netctl. A part of netctl-gui"
+ depends=('netctl' 'kdebase-workspace')
+ optdepends=('netctlgui-helper-qt4: DBus helper daemon'
+ 'netctl-gui-qt4: graphical front-end'
+ 'sudo: sudo support')
+ install="kdeplasma-applets-netctl-gui.install"
+
+ cd "${srcdir}/build-plasmoid"
+ make DESTDIR="${pkgdir}" install
+}
+
+
+package_libnetctlgui-qt4() {
+ pkgdesc="Qt4 library which interacts with netctl. A part of netctl-gui"
+ depends=('netctl' 'qt4')
+ optdepends=('netctlgui-helper-qt4: DBus helper daemon'
+ 'sudo: sudo support'
+ 'wpa_supplicant: wifi support')
+ provides=('libnetctlgui')
+ conflicts=('libnetctlgui')
+
+ cd "${srcdir}/build-qt4/netctlgui"
+ make DESTDIR="${pkgdir}" install
+}
+
+
+package_netctlgui-helper-qt4() {
+ pkgdesc="Helper daemon for netctl-gui. A part of netctl-gui"
+ depends=("libnetctlgui-qt4=${pkgver}")
+ provides=('netctlgui-helper')
+ conflicts=('netctlgui-helper')
+ backup=('etc/netctl-gui.conf'
+ 'etc/dbus-1/system.d/org.netctlgui.helper.conf')
+ install="netctlgui-helper.install"
+
+ cd "${srcdir}/build-qt4/helper"
+ make DESTDIR="${pkgdir}" install
+}
+
+
+package_netctl-gui-qt4() {
+ pkgdesc="Qt4 graphical front-end for netctl. A part of netctl-gui"
+ depends=("libnetctlgui-qt4=${pkgver}")
+ optdepends=('kdeplasma-applets-netctl-gui: KDE widget'
+ 'netctlgui-helper-qt4: DBus helper daemon')
+ provides=('netctl-gui')
+ conflicts=('netctl-gui')
+ install="netctl-gui.install"
+
+ cd "${srcdir}/build-qt4/gui"
+ make DESTDIR="${pkgdir}" install
+ cd "${srcdir}/build-qt4/resources"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/kdeplasma-applets-netctl-gui.install b/kdeplasma-applets-netctl-gui.install
new file mode 100644
index 00000000000..58c909fcce7
--- /dev/null
+++ b/kdeplasma-applets-netctl-gui.install
@@ -0,0 +1,14 @@
+post_install() {
+ cat << EOF
+Update plasmoids...
+EOF
+ kbuildsycoca4 > /dev/null 2>&1
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+post_remove() {
+ post_install "$1"
+}
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"
+}