mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
209 lines
6.5 KiB
Bash
209 lines
6.5 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
|
|
#
|
|
pkgbase="kde-baseapps"
|
|
pkgname=('kde-baseapps'
|
|
'kde-baseapps-doc'
|
|
'kde-baseapps-dolphin'
|
|
'kde-baseapps-konqueror'
|
|
'kde-baseapps-konq-plugins')
|
|
|
|
arch=('i686' 'x86_64')
|
|
pkgver=${_kdever}
|
|
pkgrel=2
|
|
|
|
pkgdesc="split package"
|
|
url="http://www.kde.org"
|
|
license=('GPL' 'LGPL' 'FDL')
|
|
|
|
options=('docs' '!splithdr' 'splitdbg' 'log')
|
|
|
|
makedepends=("kde-workspace>=${_kdever}" 'pkgconfig' 'cmake' 'automoc4' 'libraw1394' 'ruby' 'tidyhtml')
|
|
|
|
source=("$_mirror/${pkgbase}-$_kdever.tar.bz2"
|
|
"http://www.kde-apps.org/CONTENT/content-files/99752-kde_cdemu-0.3.1.tar.bz2")
|
|
|
|
md5sums=(`grep ${pkgbase}-$_kdever.tar.bz2 ../kde-sc.md5 | cut -d" " -f1`
|
|
'6b68353583ee959fb61b3c68a07606ae') # 99752-kde_cdemu-0.3.1.tar.gz
|
|
|
|
#
|
|
# build function
|
|
#
|
|
build()
|
|
{
|
|
cd ${pkgbase}-${pkgver}
|
|
|
|
msg "starting build ..."
|
|
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
|
|
|
make || return 1
|
|
}
|
|
|
|
|
|
|
|
#
|
|
# split-install functions
|
|
#
|
|
package_kde-baseapps()
|
|
{
|
|
pkgdesc="KDE Base Applications"
|
|
depends=("kde-runtime>=${_kdever}" 'libraw1394')
|
|
optdepends=("cdemu-client: Support transparent CD/DVD image mounting in KDE")
|
|
conflicts=("kdebase")
|
|
replaces=('kdebase')
|
|
provides=("kdebase" "baseapps")
|
|
groups=("${pkgbase}" "kde" "kde-minimal" "kde-uninstall")
|
|
install=kde-baseapps.install
|
|
|
|
splitdirs="kdepasswd kdialog keditbookmarks kfind lib nsplugins plasma konqueror"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
|
|
# install cdemu frontend
|
|
cd ${srcdir}/kde_cdemu
|
|
cmake . -DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
-DCMAKE_{SHARED,MODULE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
|
make
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
# prepare konqueror
|
|
msg "splitting konqueror ..."
|
|
rm -vR ${pkgdir}/usr/include/konqsidebarplugin.h
|
|
rm -vR ${pkgdir}/usr/lib/libkonqsidebarplugin.so*
|
|
rm -vR ${pkgdir}/usr/lib/libkdeinit4_konqueror.so*
|
|
rm -vR ${pkgdir}/usr/lib/libkonquerorprivate.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/konq_aboutpage.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/konqsidebar_web.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/konq_sidebartree_bookmarks.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/konq_sidebartree_dirtree.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/konq_sidebar.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/konqsidebar_history.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/kded_konqy_preloader.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/konqsidebar_places.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/konqsidebar_tree.so*
|
|
rm -vR ${pkgdir}/usr/share/config/konqsidebartngrc
|
|
rm -vR ${pkgdir}/usr/share/config.kcfg/konqueror.kcfg
|
|
rm -vR ${pkgdir}/usr/share/autostart/konqy_preload.desktop
|
|
rm -vR ${pkgdir}/usr/share/applications/kde4/konquerorsu.desktop
|
|
rm -vR ${pkgdir}/usr/share/applications/kde4/konqbrowser.desktop
|
|
rm -vR ${pkgdir}/usr/share/apps/konqsidebartng
|
|
rm -vR ${pkgdir}/usr/share/apps/konqueror
|
|
rm -vR ${pkgdir}/usr/share/icons/
|
|
rm -vR ${pkgdir}/usr/share/dbus-1/interfaces/org.kde.Konq*
|
|
rm -vR ${pkgdir}/usr/share/dbus-1/interfaces/org.kde.konq*
|
|
rm -vR ${pkgdir}/usr/bin/konqueror
|
|
|
|
# we dont want the cdemu manager app. the service menu + devicenotifier is perfect already
|
|
rm -rfv ${pkgdir}/usr/share/applications/kde4/kde_cdemu.desktop
|
|
|
|
# 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/${pkgbase} &>/dev/null
|
|
# for i in ${startdir}/*.patch; do
|
|
# msg "$i"
|
|
# cp $i ${pkgdir}/usr/share/chakra/patches/${pkgbase}/ &>/dev/null
|
|
# done
|
|
#else
|
|
# warning "no patches found, skipping to include them into the package..."
|
|
#fi
|
|
}
|
|
|
|
package_kde-baseapps-doc()
|
|
{
|
|
pkgdesc="KDE Base Applications - Documentation"
|
|
conflicts=('kdebase-doc')
|
|
replaces=('kdebase-doc')
|
|
groups=("kde" "kde-uninstall" "kde-doc")
|
|
|
|
splitdirs="doc"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kde-baseapps-dolphin()
|
|
{
|
|
pkgdesc="KDE Base Applications - Dolphin, the default KDE file manager"
|
|
depends=("${pkgbase}>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-complete" "kde-uninstall")
|
|
conflicts=("kdebase-dolphin")
|
|
provides=("kdebase-dolphin" "dolphin")
|
|
replaces=('kdebase-dolphin')
|
|
install=kde-baseapps-dolphin.install
|
|
|
|
splitdirs="dolphin"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|
|
|
|
package_kde-baseapps-konqueror()
|
|
{
|
|
pkgdesc="KDE Base Applications - Konqueror, the default KDE web browser"
|
|
depends=("${pkgbase}>=${_kdever}" "${pkgbase}-dolphin>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-minimal" "kde-uninstall")
|
|
conflicts=("kdebase-konqueror")
|
|
provides=("kdebase-konqueror" "konqueror")
|
|
replaces=('kdebase-konqueror')
|
|
install=kde-baseapps-konqueror.install
|
|
|
|
splitdirs="konqueror"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
|
|
msg "remove conflicting files ..."
|
|
rm -vR ${pkgdir}/usr/bin/kfmclient
|
|
rm -vR ${pkgdir}/usr/lib/kde4/kcm_history.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/kcm_kio.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/kcm_konq.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/kcm_konqhtml.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/kcm_kurifilt.so*
|
|
rm -vR ${pkgdir}/usr/lib/kde4/kcm_performance.so*
|
|
rm -vR ${pkgdir}/usr/lib/libkdeinit4_kfmclient.so*
|
|
rm -vR ${pkgdir}/usr/share/applications/kde4/Home.desktop
|
|
rm -vR ${pkgdir}/usr/share/applications/kde4/kfmclient*
|
|
rm -vR ${pkgdir}/usr/share/apps/kcmcss
|
|
rm -vR ${pkgdir}/usr/share/apps/kconf_update
|
|
rm -vR ${pkgdir}/usr/share/apps/kcontrol
|
|
rm -vR ${pkgdir}/usr/share/kde4/service*
|
|
}
|
|
|
|
package_kde-baseapps-konq-plugins()
|
|
{
|
|
pkgdesc="KDE Base Applications - Extra plugins for Konqueror"
|
|
depends=("${pkgbase}-konqueror>=${_kdever}")
|
|
groups=("${pkgbase}" "kde" "kde-minimal" "kde-uninstall")
|
|
conflicts=('konq-plugins')
|
|
provides=("konq-plugins")
|
|
replaces=('konq-plugins')
|
|
install=kde-baseapps-konqueror.install
|
|
|
|
splitdirs="konq-plugins"
|
|
for i in ${splitdirs} ; do
|
|
cd ${srcdir}/${pkgbase}-${pkgver}/${i}
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
done
|
|
}
|