Created
February 1, 2015 01:01
-
-
Save arcan1s/10fac4b694cbc85e1dd3 to your computer and use it in GitHub Desktop.
PKGBUILD for netctl-gui-1.4.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install() { | |
true | |
} | |
post_upgrade() { | |
post_install "$1" | |
} | |
post_remove() { | |
post_install "$1" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com> | |
pkgbase=netctl-gui | |
pkgname=('libnetctlgui' 'netctlgui-helper' 'netctl-gui') | |
pkgver=1.4.0 | |
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=('automoc4' 'cmake' 'qt5-base' 'qt5-tools') | |
source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${pkgbase}-${pkgver}-src.tar.xz") | |
md5sums=('172fff4b59c15c991b016db35971eca1') | |
prepare() { | |
rm -rf "${srcdir}/build-qt5" | |
mkdir "${srcdir}/build-qt5" | |
} | |
build() { | |
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_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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment