desktop/kde-runtime/PKGBUILD

98 lines
3.4 KiB
Bash

#
# KDE SC Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
#
# package info
#
pkgname="kde-runtime"
arch=('i686' 'x86_64')
pkgver=${_kdever}
pkgrel=1
pkgdesc="KDE Runtime"
url="http://www.kde.org"
license=('GPL' 'LGPL' 'FDL')
options=('docs' '!splithdr' 'splitdbg' 'log')
depends=("kdelibs>=${_kdever}" 'oxygen-icons' 'xorg-xauth' 'hicolor-icon-theme'
'smbclient' 'rarian' 'libssh' 'libpulse' 'libssh' 'ntrack' 'libcanberra' 'sound-theme-freedesktop' 'qt-mobility')
makedepends=('pkgconfig' 'cmake' 'automoc4' "kdepimlibs>=${_kdever}" 'openslp' 'docbook-xml' 'docbook-xsl'
'xine-lib' 'libpulse' 'libssh' 'ntrack' 'libcanberra' 'libcanberra-pulse' 'samba' 'soprano')
optdepends=('htdig: to build the search index' 'gdb: drkonq crash handler')
groups=("kde" "kde-minimal" "kde-uninstall")
eplaces=('kdebase-runtime' 'kde-runtime-doc')
provides=('kdebase-runtime' 'kde-runtime-doc')
conflicts=('kdebase-runtime' 'kde-runtime-doc')
install=kde-runtime.install
noextract=(branding.svgz)
source=($_mirror/${pkgname}-$_kdever.tar.bz2
branding.svgz
# 01_knetattach_use_sftp.patch
# 02_oxygenify_knetattach_icon.patch
03_disable_logout_sound.patch)
md5sums=(`grep ${pkgname}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`
'68cd8eb57db22c2f2ed554b721253bc2' # branding.svgz
# '45fa12b8baf21c4fc845147afcea2bc1' # 01_knetattach_use_sftp.patch
# '1f0225f31d5f44e753e966fd3a032f00' # 02_oxygenify_knetattach_icon.patch
'a434bf282ee391b2f857184be59a3b6f') # 03_disable_logout_sound.patch
#
# build function
#
build() {
cd ${pkgname}-${pkgver}
msg "applying main patchset ..."
# patch -Np1 -i ${srcdir}/01_knetattach_use_sftp.patch
# patch -Np1 -i ${srcdir}/02_oxygenify_knetattach_icon.patch
patch -Np1 -i ${srcdir}/03_disable_logout_sound.patch
# copy our branding stuff
cp -f ${srcdir}/branding.svgz ${srcdir}/${pkgname}-${pkgver}/desktoptheme/oxygen/widgets/
cp -f ${srcdir}/branding.svgz ${srcdir}/${pkgname}-${pkgver}/desktoptheme/air/widgets/
msg "starting build ..."
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
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}/
make DESTDIR=${pkgdir} install
# put kdesu into the path
cp ${pkgdir}/usr/lib/kde4/libexec/kdesu ${pkgdir}/usr/bin/kdesu
# use transparent panel svg's everywhere
for n in default oxygen; do
cp -f ${pkgdir}/usr/share/apps/desktoptheme/$n/widgets/panel-background.svgz ${pkgdir}/usr/share/apps/desktoptheme/$n/opaque/widgets/panel-background.svgz
done
# include our patches into the package
ls -1 ${startdir}/*.patch &>/dev/null 2>&1
if [ "$?" = "0" ]; then
warning "incuding patches into package"
mkdir -p ${pkgdir}/usr/share/chakra/patches/${pkgname} &>/dev/null
for i in ${startdir}/*.patch; do
msg "$i"
cp $i ${pkgdir}/usr/share/chakra/patches/${pkgname}/ &>/dev/null
done
else
warning "no patches found, skipping to include them into the package..."
fi
# WORKAROUND, conflict with hicolor-icon-theme
rm -rf ${pkgdir}/usr/share/icons/hicolor/index.theme
rm -rf ${pkgdir}/usr/share/icons/default.kde4
}