2013-12-18 02:36:04 +08:00
|
|
|
# Include global configuration
|
2015-04-10 05:07:08 +08:00
|
|
|
source ../kdeapps.conf
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2016-04-21 04:55:53 +08:00
|
|
|
pkgname='kde-runtime'
|
2010-05-22 06:25:44 +08:00
|
|
|
pkgver=${_kdever}
|
2017-11-20 15:18:12 +08:00
|
|
|
pkgrel=1
|
2016-04-21 04:55:53 +08:00
|
|
|
pkgdesc="Plugins and applications necessary for the running of KDE applications"
|
|
|
|
arch=('x86_64')
|
2016-04-21 04:03:08 +08:00
|
|
|
url='https://projects.kde.org/projects/kde/kde-runtime'
|
|
|
|
license=('GPL' 'LGPL')
|
|
|
|
options=('debug')
|
|
|
|
makedepends=('pkg-config' 'cmake' 'automoc4' 'openslp' 'doxygen' 'networkmanager' 'boost')
|
2017-05-13 06:21:23 +08:00
|
|
|
depends=('kdelibs' 'smbclient' 'libssh' 'libcanberra' 'oxygen-icons' 'xorg-xauth' 'libwebp' 'exiv2' 'gpgme')
|
|
|
|
optdepends=('drkonqi: crash report tool' 'khelpcenter: to display applications documentation')
|
2016-04-21 04:03:08 +08:00
|
|
|
|
2015-04-10 05:07:08 +08:00
|
|
|
groups=('kde' 'kde-minimal' 'kde-uninstall')
|
2012-02-06 04:46:15 +08:00
|
|
|
install=kde-runtime.install
|
2016-04-21 04:03:08 +08:00
|
|
|
replaces=('kdebase-runtime')
|
|
|
|
provides=('kdebase-runtime')
|
|
|
|
conflicts=('kdebase-runtime')
|
2017-05-13 06:21:23 +08:00
|
|
|
source=("$_mirror/${pkgname}-$_kdever.tar.xz"{,.sig}
|
|
|
|
kdebase-runtime-no-html-thumbnails.patch
|
|
|
|
kdebase-runtime-no-kdewebkit.patch)
|
2016-12-22 06:28:54 +08:00
|
|
|
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../kdeapps.sums | cut -d" " -f1`
|
2017-05-13 06:21:23 +08:00
|
|
|
'SKIP'
|
|
|
|
'5ce434f25759215ed2b6f71ec82a9118ee76e7428ef1af8a5495133a76c9c2df'
|
|
|
|
'93d5ddf78c784b3d79486813bdfb43debba271b389bfc46ca79aabdb0bca14db')
|
2017-08-11 00:14:23 +08:00
|
|
|
validpgpkeys=(${Avalidpgpkeys[@]})
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2014-01-07 07:29:04 +08:00
|
|
|
prepare() {
|
2016-04-21 04:03:08 +08:00
|
|
|
mkdir -p build
|
2017-05-13 06:21:23 +08:00
|
|
|
|
|
|
|
# Don't link to kactivities
|
|
|
|
sed -e '/plasmaextracomponents/d' -i kde-runtime-$pkgver/plasma/declarativeimports/CMakeLists.txt
|
|
|
|
# Drop HTML thumbnailer, uses insecure QtWebKit
|
|
|
|
cd kde-runtime-$pkgver
|
|
|
|
patch -p1 -i ../kdebase-runtime-no-html-thumbnails.patch
|
|
|
|
patch -p1 -i ../kdebase-runtime-no-kdewebkit.patch
|
2014-01-07 07:29:04 +08:00
|
|
|
}
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
build() {
|
2016-04-21 04:03:08 +08:00
|
|
|
cd build
|
|
|
|
cmake ../kde-runtime-$pkgver \
|
|
|
|
-DCMAKE_BUILD_TYPE=${_build_type} \
|
|
|
|
-DKDE4_BUILD_TESTS=OFF \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
|
|
-DWITH_QNtrack=OFF \
|
|
|
|
-DSAMBA_INCLUDE_DIR=/usr/include/samba-4.0 \
|
|
|
|
-DWITH_NepomukCore=OFF \
|
|
|
|
-DBUILD_khelpcenter=OFF \
|
|
|
|
-DBUILD_kglobalaccel=OFF \
|
|
|
|
-DBUILD_kuiserver=OFF \
|
2017-05-13 06:21:23 +08:00
|
|
|
-DBUILD_drkonqi=OFF \
|
2016-04-21 04:55:53 +08:00
|
|
|
-DBUILD_doc=OFF
|
2016-04-21 04:03:08 +08:00
|
|
|
make
|
2010-05-22 06:25:44 +08:00
|
|
|
}
|
|
|
|
|
2016-04-21 04:03:08 +08:00
|
|
|
package() {
|
|
|
|
cd build
|
|
|
|
make DESTDIR="$pkgdir" install
|
2013-11-23 02:07:53 +08:00
|
|
|
|
2016-04-21 04:03:08 +08:00
|
|
|
rm "$pkgdir"/usr/share/icons/hicolor/index.theme
|
2016-05-13 04:57:22 +08:00
|
|
|
# included in oxygen-icons
|
|
|
|
rm "$pkgdir"/usr/share/icons/default.kde4
|
2016-04-21 04:03:08 +08:00
|
|
|
ln -s /usr/lib/kde4/libexec/kdesu "$pkgdir"/usr/bin/kdesu4
|
|
|
|
|
|
|
|
# FS#36668
|
|
|
|
chown :nobody "$pkgdir"/usr/lib/kde4/libexec/kdesud
|
|
|
|
chmod g+s "$pkgdir"/usr/lib/kde4/libexec/kdesud
|
2015-02-26 06:59:09 +08:00
|
|
|
}
|
2016-04-21 04:03:08 +08:00
|
|
|
|