mirror of
https://github.com/arcan1s/pkgbuild.git
synced 2025-04-24 23:47:17 +00:00
added netctl-gui
This commit is contained in:
parent
039916ba70
commit
4b2318d118
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.src.tar.gz
|
39
netctl-gui/PKGBUILD
Normal file
39
netctl-gui/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# Maintainer: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com>
|
||||||
|
|
||||||
|
# comment out needed line if you dont need this component
|
||||||
|
#_build_gui=0
|
||||||
|
#_build_plasmoid=0
|
||||||
|
|
||||||
|
pkgname=netctl-gui
|
||||||
|
pkgver=1.0.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Qt4 GUI for netctl. Provides a plasmoid for KDE4"
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://arcanis.name/projects/netctl-gui"
|
||||||
|
license=('GPLv3')
|
||||||
|
depends=('netctl' 'qt4')
|
||||||
|
makedepends=('automoc4' 'cmake' 'desktop-file-utils' 'xdg-utils')
|
||||||
|
optdepends=('kdebase-runtime: sudo support'
|
||||||
|
'sudo: sudo support'
|
||||||
|
'wpa_supplicant: wifi support')
|
||||||
|
source=("https://github.com/arcan1s/netctlplasmoid/releases/download/V.${pkgver}/${pkgname}-${pkgver}-src.tar.xz")
|
||||||
|
install="${pkgname}.install"
|
||||||
|
md5sums=('bc727268cdc3b9ab7d567a2fe9ad3330')
|
||||||
|
|
||||||
|
# flags
|
||||||
|
_cmakekeys="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release"
|
||||||
|
[[ ${_build_gui} == 0 ]] && _cmakekeys=${_cmakekeys}" -DBUILD_GUI:BOOL=0"
|
||||||
|
[[ ${_build_plasmoid} == 0 ]] && _cmakekeys=${_cmakekeys}" -DBUILD_DATAENGINE:BOOL=0 -DBUILD_PLASMOID:BOOL=0" || depends[1]='kdebase-workspace'
|
||||||
|
|
||||||
|
build() {
|
||||||
|
rm -rf "${srcdir}/build"
|
||||||
|
mkdir "${srcdir}/build"
|
||||||
|
cd "${srcdir}/build"
|
||||||
|
cmake ${_cmakekeys} "../${pkgname}"
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "${srcdir}/build"
|
||||||
|
make DESTDIR="${pkgdir}" install
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user