diff --git a/PKGBUILD b/PKGBUILD index 3adb4cd..b4a1bc8 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Evgeniy "arcanis" Alexeev pkgbase=netctl-gui -pkgname=('netctl-gui' 'netctl-gui-qt4' 'kdeplasma-applets-netctl-gui') +pkgname=('libnetctlgui' 'netctl-gui' 'netctl-gui-qt4' 'kdeplasma-applets-netctl-gui') pkgver=1.2.0 pkgrel=1 pkgdesc="Qt4/Qt5 GUI for netctl. Also provides a widget for KDE" @@ -15,13 +15,15 @@ optdepends=('kdebase-runtime: sudo support' 'wpa_supplicant: wifi support') source=("https://github.com/arcan1s/netctl-gui/releases/download/V.${pkgver}/${pkgbase}-${pkgver}-src.tar.xz") install="${pkgbase}.install" -md5sums=('1d6797070defe45ec7009cb8e4f768c9') +md5sums=('29542e7bd1978e5bae0a3523e59e533a') + prepare() { - rm -rf "${srcdir}/"{build-plasmoid,build-qt4,build-qt5} - mkdir "${srcdir}/"{build-plasmoid,build-qt4,build-qt5} + rm -rf "${srcdir}/build-"{plasmoid,qt4,qt5} + mkdir "${srcdir}/build-"{plasmoid,qt4,qt5} } + build() { cd "${srcdir}/build-plasmoid" cmake -DCMAKE_INSTALL_PREFIX=/usr \ @@ -52,6 +54,16 @@ build() { make } + +package_libnetctlgui() { + pkgdesc="Qt library interacts with netctl. A part of netctl-gui" + depends=('netctl' 'qt5-base') + + cd "${srcdir}/build-qt5/netctlgui" + make DESTDIR="${pkgdir}" install +} + + package_kdeplasma-applets-netctl-gui() { pkgdesc="A plasmoid, which interacts with netctl. A part of netctl-gui" depends=('netctl' 'kdebase-workspace') @@ -59,26 +71,31 @@ package_kdeplasma-applets-netctl-gui() { 'netctl-gui: graphical front-end' 'netctl-gui-qt4: graphical front-end' 'sudo: sudo support') + install="${pkgbase}.install" cd "${srcdir}/build-plasmoid" make DESTDIR="${pkgdir}" install } + package_netctl-gui() { pkgdesc="Qt5 graphical front-end for netctl. A part of netctl-gui" - depends=('netctl' 'qt5-base' 'xdg-utils') + depends=('libnetctlgui') provides=('netctl-gui-qt4') conflicts=('netctl-gui-qt4') + install="${pkgbase}.install" - cd "${srcdir}/build-qt5" + cd "${srcdir}/build-qt5/gui" make DESTDIR="${pkgdir}" install } + package_netctl-gui-qt4() { pkgdesc="Qt4 graphical front-end for netctl. A part of netctl-gui" depends=('netctl' 'qt4') - provides=('netctl-gui') - conflicts=('netctl-gui') + provides=('libnetctlgui' 'netctl-gui') + conflicts=('libnetctlgui' 'netctl-gui') + install="${pkgbase}.install" cd "${srcdir}/build-qt4" make DESTDIR="${pkgdir}" install diff --git a/sources/gui/CMakeLists.txt b/sources/gui/CMakeLists.txt index 3d7a689..ada71d1 100644 --- a/sources/gui/CMakeLists.txt +++ b/sources/gui/CMakeLists.txt @@ -22,5 +22,5 @@ configure_file (${SUBPROJECT_MAN_IN} ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_MA install (FILES ${SUBPROJECT}.desktop DESTINATION share/applications/) install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${SUBPROJECT_MAN} DESTINATION share/man/man1/) -install (FILES bash-completions DESTINATION share/bash-completion/completions/ RENAME _${SUBPROJECT}) -install (FILES zsh-completions DESTINATION share/zsh/site-functions/ RENAME ${SUBPROJECT}) +install (FILES bash-completions DESTINATION share/bash-completion/completions/ RENAME ${SUBPROJECT}) +install (FILES zsh-completions DESTINATION share/zsh/site-functions/ RENAME _${SUBPROJECT})