mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-04-24 15:37:23 +00:00
yet another edit of pkgbuild
This commit is contained in:
parent
c6902c6c6b
commit
e4c2402530
17
PKGBUILD
17
PKGBUILD
@ -1,13 +1,14 @@
|
|||||||
# Maintainer: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com>
|
# Maintainer: Evgeniy "arcanis" Alexeev <arcanis.arch at gmail dot com>
|
||||||
|
|
||||||
|
# comment out needed line if you dont need this component
|
||||||
_build_gui=0
|
_build_gui=0
|
||||||
_build_plasmoid=1
|
#_build_plasmoid=0
|
||||||
|
|
||||||
pkgname=kdeplasma-applets-netctl
|
pkgname=kdeplasma-applets-netctl
|
||||||
_pkgname=netctl-plasmoid
|
_pkgname=netctl-plasmoid
|
||||||
pkgver=1.0.0
|
pkgver=1.0.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Plasmoid written on C++ which interacts with netctl"
|
pkgdesc="Plasmoid with Qt4 GUI which interacts with netctl"
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
url="http://arcan1s.github.io/projects/netctlplasmoid"
|
url="http://arcan1s.github.io/projects/netctlplasmoid"
|
||||||
license=('GPLv3')
|
license=('GPLv3')
|
||||||
@ -15,16 +16,16 @@ depends=('netctl' 'qt4')
|
|||||||
makedepends=('cmake' 'automoc4')
|
makedepends=('cmake' 'automoc4')
|
||||||
optdepends=('kdebase-runtime: sudo support'
|
optdepends=('kdebase-runtime: sudo support'
|
||||||
'sudo: sudo support')
|
'sudo: sudo support')
|
||||||
source=(https://github.com/arcan1s/netctlplasmoid/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz)
|
source=("https://github.com/arcan1s/netctlplasmoid/releases/download/V.${pkgver}/${_pkgname}-${pkgver}-src.tar.xz")
|
||||||
install=${pkgname}.install
|
install="${pkgname}.install"
|
||||||
md5sums=('1faefe9a5491837863b08fcce79accfe')
|
md5sums=('1faefe9a5491837863b08fcce79accfe')
|
||||||
|
|
||||||
|
# flags
|
||||||
_cmakekeys="-DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) -DCMAKE_BUILD_TYPE=Release"
|
_cmakekeys="-DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) -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'
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
# flags
|
|
||||||
[[ ${_build_gui} == 0 ]] && _cmakekeys=${_cmakekeys}" -DBUILD_GUI:BOOL=0"
|
|
||||||
[[ ${_build_plasmoid} == 1 ]] && depends+=('kdebase-workspace') || _cmakekeys=${_cmakekeys}" -DBUILD_PLASMOID:BOOL=0"
|
|
||||||
|
|
||||||
# build directory
|
# build directory
|
||||||
[[ -d ${srcdir}/build ]] && rm -rf "${srcdir}/build"
|
[[ -d ${srcdir}/build ]] && rm -rf "${srcdir}/build"
|
||||||
mkdir "${srcdir}/build"
|
mkdir "${srcdir}/build"
|
||||||
|
Loading…
Reference in New Issue
Block a user