author | Andrea Scarpino
<andrea@archlinux.org> 2015-01-28 17:52:49 UTC |
committer | Andrea Scarpino
<andrea@archlinux.org> 2015-01-28 17:52:49 UTC |
parent | cb5764b4256bd62101ae374fe6bb4752b93f48aa |
PKGBUILD | +27 | -9 |
diff --git a/PKGBUILD b/PKGBUILD index 4a840a7..8871725 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,24 +2,26 @@ # Contributor: Antonio Rojas # Contributor: Alexey D. <lq07829icatm at rambler.ru> -pkgname=plasma-workspace +pkgbase=plasma-workspace +pkgname=('plasma-workspace' 'drkonqi') pkgver=5.2.0 -pkgrel=1 +pkgrel=2 pkgdesc='KDE Plasma Workspace' arch=('i686' 'x86_64') url='https://projects.kde.org/projects/kde/workspace/plasma-workspace' license=('LGPL') -depends=('knewstuff' 'kjsembed' 'knotifyconfig' 'libxcursor' 'kwayland' +# note on libxdamage: +# not detected by namcap because libgl depends on it +# but nvidia providing libgl does not depend on libxdamage +depends=('knewstuff' 'kjsembed' 'knotifyconfig' 'libxdamage' 'kwayland' 'libksysguard' 'libkscreen-frameworks' 'ktexteditor' 'libqalculate' 'qt5-tools' 'kded' 'kde-cli-tools' 'xorg-xrdb' 'xorg-xsetroot' 'xorg-xmessage' 'xorg-xprop') makedepends=('extra-cmake-modules' 'kdoctools' 'kwin' 'gpsd' 'baloo-frameworks' 'krunner') -optdepends=('plasma-workspace-wallpapers: additional wallpapers' - 'gpsd: GPS support for geolocation') conflicts=('kdebase-workspace') groups=('plasma') -source=("http://download.kde.org/stable/plasma/${pkgver}/$pkgname-$pkgver.tar.xz" +source=("http://download.kde.org/stable/plasma/${pkgver}/${pkgbase}-${pkgver}.tar.xz" 'kde.pam') md5sums=('4ffdb4c7e310dff222abd452fd67e74d' '929b182dec8a096206ad493477c09d2c') @@ -27,14 +29,14 @@ md5sums=('4ffdb4c7e310dff222abd452fd67e74d' prepare() { mkdir build - cd ${pkgname}-${pkgver} + cd ${pkgbase}-${pkgver} # be sure to use the Qt5 version of qtpaths sed -i 's:qtpaths:qtpaths-qt5:' startkde/startkde.cmake } build() { cd build - cmake ../${pkgname}-${pkgver} \ + cmake ../${pkgbase}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DLIB_INSTALL_DIR=lib \ @@ -44,10 +46,26 @@ build() { make } -package() { +package_plasma-workspace() { + optdepends=('plasma-workspace-wallpapers: additional wallpapers' + 'gpsd: GPS support for geolocation') + cd build make DESTDIR="${pkgdir}" install install -D "${srcdir}"/kde.pam \ "${pkgdir}"/etc/pam.d/kde + + # Remove conflicts with drkonqi + rm "${pkgdir}"/usr/lib/drkonqi + rm -r "${pkgdir}"/usr/share/drkonqi + rm "${pkgdir}"/usr/lib/libKF5XmlRpcClientPrivate.* +} + +package_drkonqi() { + pkgdesc='KDE crash handler' + depends=('kdewebkit') + + cd build/drkonqi + make DESTDIR="${pkgdir}" install }