2014-01-13 00:22:06 +08:00
|
|
|
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
|
|
|
# Contributors: Manuel Tortosa <manutortosa@chakra-project.org>
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2013-12-18 02:36:04 +08:00
|
|
|
# Include global configuration
|
2010-05-22 06:25:44 +08:00
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
2015-02-26 06:59:09 +08:00
|
|
|
pkgbase='kde-runtime'
|
|
|
|
pkgname=('kde-runtime' 'khelpcenter4')
|
2012-11-17 23:53:20 +08:00
|
|
|
arch=('x86_64')
|
2010-05-22 06:25:44 +08:00
|
|
|
pkgver=${_kdever}
|
2015-02-26 06:59:09 +08:00
|
|
|
pkgrel=2
|
2013-12-18 03:33:01 +08:00
|
|
|
url='http://www.kde.org'
|
|
|
|
license=('GPL'
|
|
|
|
'LGPL'
|
|
|
|
'FDL')
|
|
|
|
options=('docs'
|
|
|
|
'!header'
|
|
|
|
'debug'
|
|
|
|
'log')
|
|
|
|
makedepends=('pkgconfig'
|
|
|
|
'cmake'
|
|
|
|
'automoc4'
|
2015-02-20 06:29:49 +08:00
|
|
|
"kdepimlibs>=${_libsver}"
|
2013-12-18 03:33:01 +08:00
|
|
|
'openslp'
|
|
|
|
'docbook-xsl'
|
|
|
|
'networkmanager'
|
|
|
|
'xine-lib'
|
|
|
|
'libcanberra-pulse'
|
2015-02-26 06:59:09 +08:00
|
|
|
"kdelibs>=${_libsver}"
|
|
|
|
"baloo>=${_oldkdever}"
|
|
|
|
"kactivities"
|
|
|
|
'oxygen-icons'
|
|
|
|
'xorg-xauth'
|
|
|
|
'hicolor-icon-theme'
|
|
|
|
'samba'
|
|
|
|
'rarian'
|
|
|
|
'libssh'
|
|
|
|
'libpulse'
|
|
|
|
'libssh>=0.6.0'
|
|
|
|
'libcanberra'
|
|
|
|
'sound-theme-freedesktop'
|
|
|
|
'libgcrypt'
|
2013-12-18 03:33:01 +08:00
|
|
|
'soprano')
|
|
|
|
groups=('kde'
|
|
|
|
'kde-minimal'
|
|
|
|
'kde-uninstall')
|
2012-02-06 04:46:15 +08:00
|
|
|
install=kde-runtime.install
|
2010-05-22 06:25:44 +08:00
|
|
|
noextract=(branding.svgz)
|
2015-02-26 06:59:09 +08:00
|
|
|
source=("$_mirror/${pkgbase}-$_kdever.tar.xz"
|
2014-01-07 07:29:04 +08:00
|
|
|
'branding.svgz'
|
2015-02-20 06:29:49 +08:00
|
|
|
'Remove-volume-control-from-KNotify.patch')
|
2015-02-26 06:59:09 +08:00
|
|
|
sha256sums=(`grep ${pkgbase}-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`
|
2014-01-13 00:22:06 +08:00
|
|
|
'586c5461d66ef13d5c43fb269e16c4da51812ae25a0d1b132f0bbbcdb22505e5'
|
2015-02-20 06:29:49 +08:00
|
|
|
'87bb4bd5f20a95d10f03930477b7cc41c1a68b04e1ca57836b5836fe29c8e7bf')
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2014-01-07 07:29:04 +08:00
|
|
|
prepare() {
|
2015-02-26 06:59:09 +08:00
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
rm -rf "${srcdir}/${pkgbase}-${pkgver}/build"
|
|
|
|
mkdir "${srcdir}/${pkgbase}-${pkgver}/build"
|
|
|
|
cp -f ${srcdir}/branding.svgz ${srcdir}/${pkgbase}-${pkgver}/desktoptheme/oxygen/widgets/
|
|
|
|
cp -f ${srcdir}/branding.svgz ${srcdir}/${pkgbase}-${pkgver}/desktoptheme/air/widgets/
|
2012-06-10 04:05:59 +08:00
|
|
|
|
2014-01-07 07:29:04 +08:00
|
|
|
msg "Applying patches..."
|
|
|
|
patch -p1 -i ${srcdir}/Remove-volume-control-from-KNotify.patch
|
|
|
|
}
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
build() {
|
2015-02-26 06:59:09 +08:00
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}/build"
|
2013-12-18 03:33:01 +08:00
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=${_build_type} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
|
|
-DWITH_PulseAudio=ON \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
|
|
|
make
|
2010-05-22 06:25:44 +08:00
|
|
|
}
|
|
|
|
|
2015-02-26 06:59:09 +08:00
|
|
|
package_kde-runtime() {
|
|
|
|
pkgdesc='Plugins and applications necessary for the running of KDE applications'
|
|
|
|
depends=("kdelibs>=${_libsver}"
|
|
|
|
"baloo>=${_oldkdever}"
|
|
|
|
"kactivities"
|
|
|
|
'oxygen-icons'
|
|
|
|
'xorg-xauth'
|
|
|
|
'hicolor-icon-theme'
|
|
|
|
'samba'
|
|
|
|
'rarian'
|
|
|
|
'libssh'
|
|
|
|
'libpulse'
|
|
|
|
'libssh>=0.6.0'
|
|
|
|
'libcanberra'
|
|
|
|
'sound-theme-freedesktop'
|
|
|
|
'libgcrypt')
|
|
|
|
optdepends=('htdig: to build the search index'
|
|
|
|
'gdb: drkonq crash handler')
|
|
|
|
replaces=('kdebase-runtime'
|
|
|
|
'kde-runtime-doc')
|
|
|
|
provides=('kdebase-runtime'
|
|
|
|
'kde-runtime-doc')
|
|
|
|
conflicts=('kdebase-runtime'
|
|
|
|
'kde-runtime-doc')
|
|
|
|
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}/build"
|
2013-12-18 03:33:01 +08:00
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
# put kdesu into the path
|
|
|
|
cp ${pkgdir}/usr/lib/kde4/libexec/kdesu ${pkgdir}/usr/bin/kdesu
|
|
|
|
# WORKAROUND, conflict with hicolor-icon-theme
|
|
|
|
rm -rf ${pkgdir}/usr/share/icons/hicolor/index.theme
|
|
|
|
rm -rf ${pkgdir}/usr/share/icons/default.kde4
|
2015-02-26 06:59:09 +08:00
|
|
|
# split khelpcenter
|
|
|
|
rm "${pkgdir}"/usr/lib/kde4/libexec/khc_indexbuilder \
|
|
|
|
"${pkgdir}"/usr/lib/libkdeinit4_khelpcenter.so \
|
|
|
|
"${pkgdir}"/usr/bin/khelpcenter \
|
|
|
|
"${pkgdir}"/usr/share/applications/kde4/Help.desktop \
|
|
|
|
"${pkgdir}"/usr/share/config.kcfg/khelpcenter.kcfg \
|
|
|
|
"${pkgdir}"/usr/share/kde4/services/khelpcenter.desktop \
|
|
|
|
"${pkgdir}"/usr/share/dbus-1/interfaces/org.kde.khelpcenter.kcmhelpcenter.xml \
|
|
|
|
"${pkgdir}"/usr/lib/kde4/libexec/khc_htdig.pl \
|
|
|
|
"${pkgdir}"/usr/lib/kde4/libexec/khc_htsearch.pl \
|
|
|
|
"${pkgdir}"/usr/lib/kde4/libexec/khc_mansearch.pl \
|
|
|
|
"${pkgdir}"/usr/lib/kde4/libexec/khc_docbookdig.pl
|
|
|
|
rm -r "${pkgdir}"/usr/share/apps/khelpcenter/
|
|
|
|
|
2010-05-22 06:25:44 +08:00
|
|
|
}
|
2013-11-23 02:07:53 +08:00
|
|
|
|
2015-02-26 06:59:09 +08:00
|
|
|
package_khelpcenter4() {
|
|
|
|
pkgdesc="Application to show KDE Applications' documentation"
|
|
|
|
provides=('khelpcenter')
|
|
|
|
depends=("kde-runtime=${pkgver}")
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}/build/khelpcenter"
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
}
|