desktop/kde-runtime/PKGBUILD

97 lines
3.1 KiB
Bash
Raw Normal View History

2013-12-18 03:33:01 +08:00
# Maintainer: Manuel Tortosa <manutortosa@chakra-project@org>
# Contributors: H W Tovetjärn (totte) <totte@tott.es>
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
2013-12-18 03:33:01 +08:00
pkgname='kde-runtime'
2012-11-17 23:53:20 +08:00
arch=('x86_64')
2010-05-22 06:25:44 +08:00
pkgver=${_kdever}
2014-01-11 20:59:04 +08:00
pkgrel=4
2013-12-18 03:33:01 +08:00
pkgdesc='Plugins and applications necessary for the running of KDE applications'
url='http://www.kde.org'
license=('GPL'
'LGPL'
'FDL')
options=('docs'
'!header'
'debug'
'log')
depends=("kdelibs>=${_kdever}"
"nepomuk-core>=${_kdever}"
"kactivities>=${_kdever}"
'oxygen-icons'
'xorg-xauth'
'hicolor-icon-theme'
'samba'
'rarian'
'libssh'
'libpulse'
'libssh'
'libcanberra'
'sound-theme-freedesktop')
makedepends=('pkgconfig'
'cmake'
'automoc4'
"kdepimlibs>=${_kdever}"
'openslp'
'docbook-xsl'
'networkmanager'
'xine-lib'
'libcanberra-pulse'
'soprano')
optdepends=('htdig: to build the search index'
'gdb: drkonq crash handler')
groups=('kde'
'kde-minimal'
'kde-uninstall')
replaces=('kdebase-runtime'
'kde-runtime-doc')
provides=('kdebase-runtime'
'kde-runtime-doc')
conflicts=('kdebase-runtime'
'kde-runtime-doc')
install=kde-runtime.install
2010-05-22 06:25:44 +08:00
noextract=(branding.svgz)
2013-12-18 03:33:01 +08:00
source=("$_mirror/${pkgname}-$_kdever.tar.xz"
'branding.svgz'
'Remove-volume-control-from-KNotify.patch')
2014-01-11 20:59:04 +08:00
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../checksums.txt | cut -d" " -f1`
'e9a8617448523aacd70dd66f2ffc62a827af027b'
'4fd852d4ceabb98724f6ceb3df3edf9ae7c72736')
2010-05-22 06:25:44 +08:00
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
rm -rf "${srcdir}/${pkgname}-${pkgver}/build"
mkdir "${srcdir}/${pkgname}-${pkgver}/build"
2013-12-18 03:33:01 +08:00
cp -f ${srcdir}/branding.svgz ${srcdir}/${pkgname}-${pkgver}/desktoptheme/oxygen/widgets/
cp -f ${srcdir}/branding.svgz ${srcdir}/${pkgname}-${pkgver}/desktoptheme/air/widgets/
msg "Applying patches..."
patch -p1 -i ${srcdir}/Remove-volume-control-from-KNotify.patch
}
build() {
cd "${srcdir}/${pkgname}-${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
}
package() {
cd "${srcdir}/${pkgname}-${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
2010-05-22 06:25:44 +08:00
}
2014-01-12 20:19:36 +08:00
sha256sums=('0af569914a369af7bdfd504309c4811f82429d2f30abf2071d0e006d3ca8d4e8'
'586c5461d66ef13d5c43fb269e16c4da51812ae25a0d1b132f0bbbcdb22505e5'
'87bb4bd5f20a95d10f03930477b7cc41c1a68b04e1ca57836b5836fe29c8e7bf')