2010-05-22 06:25:44 +08:00
|
|
|
#
|
|
|
|
# KDE SC Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-04-27 08:49:08 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
|
|
|
# maintainer Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
2010-05-22 06:25:44 +08:00
|
|
|
|
|
|
|
# include global config
|
|
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
# Default wallpaper included in kde-workspace pkg
|
2012-12-20 03:31:59 +08:00
|
|
|
_default_wp="Elarun"
|
2012-02-06 04:46:15 +08:00
|
|
|
|
|
|
|
pkgname="kde-workspace"
|
2012-11-18 08:17:38 +08:00
|
|
|
arch=('x86_64')
|
2010-05-22 06:25:44 +08:00
|
|
|
pkgver=${_kdever}
|
2013-02-03 04:59:36 +08:00
|
|
|
pkgrel=2
|
2012-02-06 04:46:15 +08:00
|
|
|
pkgdesc="KDE Workspace"
|
2010-05-22 06:25:44 +08:00
|
|
|
url="http://www.kde.org"
|
|
|
|
license=('GPL' 'LGPL' 'FDL')
|
2010-12-15 22:51:53 +08:00
|
|
|
options=('docs' '!splithdr' 'splitdbg' 'log')
|
2012-02-06 04:46:15 +08:00
|
|
|
install=${pkgname}.install
|
2012-09-10 05:15:09 +08:00
|
|
|
depends=('polkit-kde-agent' "kdepimlibs>=${_kdever}" "kde-runtime>=${_kdever}" 'qimageblitz' 'mesa' "kactivities>=${_kdever}"
|
2012-11-18 08:17:38 +08:00
|
|
|
'libxxf86misc' 'libxcomposite' 'xcb-util-image' 'xcb-util-renderutil' 'libxss' 'lm_sensors' 'libxklavier' 'libxft' 'oxygen-icons' 'xkit' 'libxdamage'
|
2012-12-20 03:12:36 +08:00
|
|
|
'xorg-utils' 'libxrandr' 'libxres' 'libdmtx' 'libqalculate' 'prison' 'qrencode' "kdepim-runtime>=${_kdever}" "kde-base-artwork>=${_kdever}")
|
2011-07-23 02:02:15 +08:00
|
|
|
makedepends=('pkgconfig' 'cmake' 'automoc4' 'networkmanager' 'bluez' "kdebindings-pykde4>=${_kdever}"
|
2012-12-19 12:10:05 +08:00
|
|
|
'oxygen-icons' "kde-runtime>=${_kdever}" 'gpsd' 'samba'
|
2012-12-20 04:44:53 +08:00
|
|
|
'libraw1394' 'libdmtx' 'docbook-xsl' 'prison' 'qrencode')
|
2013-02-03 04:59:36 +08:00
|
|
|
optdepends=("appmenu-qt: Global menu support"
|
|
|
|
"kdebindings-pykde4: Python Support for Plasma"
|
2012-02-06 04:46:15 +08:00
|
|
|
"kdeedu-marble: Marble Wallpaper Plugin"
|
|
|
|
"gpsd: Plasma geolocation support"
|
|
|
|
"ntp: Time/date sync support"
|
|
|
|
"opentp: Optional time/date sync support")
|
2013-01-19 12:42:18 +08:00
|
|
|
provides=('kdebase-workspace' 'powerdevil' 'kcm_tablet=1.1.3' 'kde-workspace-doc' 'ktouchpadenabler')
|
|
|
|
replaces=('guidance-power-manager' 'kdebase-workspace' 'kde-workspace-doc' 'ktouchpadenabler')
|
|
|
|
conflicts=('kdebase-workspace' 'powerdevil' 'kcm_tablet' 'guidance-power-manager' 'kde-workspace-doc' 'kded-appmenu' 'ktouchpadenabler')
|
2012-02-06 04:46:15 +08:00
|
|
|
groups=("kde" "kde-uninstall" "kde-minimal")
|
|
|
|
backup=('usr/share/config/kdm/kdmrc'
|
|
|
|
'etc/pam.d/kscreensaver')
|
|
|
|
|
|
|
|
|
2012-08-30 09:01:53 +08:00
|
|
|
source=($_mirror/${pkgname}-$_kdever.tar.xz
|
2012-03-30 08:52:54 +08:00
|
|
|
$_mirror/kde-wallpapers-$_kdever.tar.xz
|
2010-05-22 06:25:44 +08:00
|
|
|
mishaaq-kcm_touchpad-00370b5.tar.gz
|
2012-12-04 16:51:47 +08:00
|
|
|
http://chakra.sourceforge.net/sources/kde-workspace/114856-wacomtablet-1.3.7-2.tar.gz
|
2011-10-29 04:11:04 +08:00
|
|
|
http://chakra.sourceforge.net/sources/kde-workspace/117639-favorites-0.1.tar.bz2
|
2010-05-22 06:25:44 +08:00
|
|
|
kde.pam
|
|
|
|
kde-np.pam
|
|
|
|
kscreensaver.pam
|
|
|
|
chakra-branding.tar.gz
|
2012-09-10 05:15:09 +08:00
|
|
|
kdm.service
|
2010-05-22 06:25:44 +08:00
|
|
|
|
|
|
|
# core patches
|
|
|
|
01_kdm_zsh_profile.patch
|
2013-01-14 07:13:24 +08:00
|
|
|
#02_sane_env_and_shutdown_path.patch
|
2010-05-22 06:25:44 +08:00
|
|
|
03_plasma_menubutton_branding.patch
|
|
|
|
06_kickoff_default_favourites.patch
|
|
|
|
07_always_show_kickoff_subtext.patch
|
2012-12-20 04:44:53 +08:00
|
|
|
09_enable_start-shutdown-scripts.patch
|
2010-05-22 06:25:44 +08:00
|
|
|
|
|
|
|
# restart xserver on logout
|
|
|
|
fix_terminate-server.patch
|
|
|
|
# "fix" some sytemsettings modules that need root access
|
2012-11-23 02:17:55 +08:00
|
|
|
fix_root-only-kcms.patch)
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2012-03-30 08:52:54 +08:00
|
|
|
md5sums=(`grep ${pkgname}-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1`
|
2013-02-03 04:59:36 +08:00
|
|
|
`grep kde-wallpapers-$_kdever.tar.xz ../kde-sc.md5 | cut -d" " -f1` # kde-wallpapers
|
|
|
|
'f355a658d2e9267fdf4e8d8f88038bcf'
|
|
|
|
'9d4cc6055b6506583dd3e4ded73d7ea9'
|
|
|
|
'b60baabccbd302d00923e053db0dc0ae'
|
|
|
|
'5b137f8b00c578ec324e72b455814fd0'
|
|
|
|
'ce53d3a059f5ccbf7429058f935ee9a4'
|
|
|
|
'367a3538f54db71f108b34cfa31088ac'
|
|
|
|
'7c52d1bf3a124e46aab8a5ba93a09ac3'
|
|
|
|
'c4b5f1b342b3dad38642318ca077daee'
|
|
|
|
'721e97031b62aee8914e8617e86f9235'
|
|
|
|
'8e623bb5608025417ff9ed061e5a03f1'
|
|
|
|
'd4d7d3fc3ac072a8ca848e9c96e517dc'
|
|
|
|
'89d96455c6a446ef59b0620d1b8606af'
|
|
|
|
'3ee0002192f6f0a2e1d15c813f520f81'
|
|
|
|
'814350c52c135d6f7bdada1e29223d38'
|
|
|
|
'5f963f80a026f0600edae1b1c70411e5')
|
2012-02-06 04:46:15 +08:00
|
|
|
build() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
2010-05-22 06:25:44 +08:00
|
|
|
|
|
|
|
msg "applying main patchset ..."
|
2011-04-08 22:08:28 +08:00
|
|
|
patch -Np0 -i ${srcdir}/01_kdm_zsh_profile.patch
|
2013-01-14 07:13:24 +08:00
|
|
|
# 02 is merged in 09, Jan 2013
|
|
|
|
#patch -Np0 -i ${srcdir}/02_sane_env_and_shutdown_path.patch
|
2011-04-08 22:08:28 +08:00
|
|
|
patch -Np1 -i ${srcdir}/03_plasma_menubutton_branding.patch
|
|
|
|
patch -Np1 -i ${srcdir}/06_kickoff_default_favourites.patch
|
|
|
|
patch -Np1 -i ${srcdir}/07_always_show_kickoff_subtext.patch
|
2013-01-14 07:13:24 +08:00
|
|
|
patch -Np0 -i ${srcdir}/09_enable_start-shutdown-scripts.patch
|
2010-05-22 06:25:44 +08:00
|
|
|
|
|
|
|
msg "applying fixes ..."
|
2012-10-06 02:17:36 +08:00
|
|
|
patch -p0 -i ${srcdir}/fix_terminate-server.patch
|
|
|
|
patch -p1 -i ${srcdir}/fix_root-only-kcms.patch
|
2010-05-22 06:25:44 +08:00
|
|
|
|
|
|
|
msg "starting workspace build ..."
|
|
|
|
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
|
|
-DWITH_Xmms=OFF \
|
|
|
|
-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
2011-04-08 22:08:28 +08:00
|
|
|
make
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
msg "starting kcm_touchpad build ..."
|
2010-05-22 06:25:44 +08:00
|
|
|
cd ${srcdir}/mishaaq-kcm_touchpad-00370b5
|
2011-06-05 01:28:14 +08:00
|
|
|
# Fix desktop to the new layout
|
|
|
|
sed -i -e "s~keyboard-and-mouse~input-devices~g" touchpad.desktop
|
2010-05-22 06:25:44 +08:00
|
|
|
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
|
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
|
|
|
|
|
|
|
msg "starting kcm_tablet build ..."
|
2012-12-04 16:51:47 +08:00
|
|
|
cd ${srcdir}/wacomtablet-1.3.7-2
|
2011-06-05 01:28:14 +08:00
|
|
|
# Fix desktop to the new layout
|
2012-12-04 16:51:47 +08:00
|
|
|
sed -i -e "s~keyboard-and-mouse~input-devices~g" ${srcdir}/wacomtablet-1.3.7-2/src/kcmodule/kcm_wacomtablet.desktop
|
2010-05-22 06:25:44 +08:00
|
|
|
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
|
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
|
|
|
|
|
|
|
msg "starting favorites launcher build ..."
|
|
|
|
cd ${srcdir}/favorites-0.1
|
|
|
|
cmake . -DCMAKE_BUILD_TYPE=${_build_type} \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${_installprefix} \
|
|
|
|
-DCMAKE_{SHARED,MODULE,EXE}_LINKER_FLAGS='-Wl,--no-undefined -Wl,--as-needed'
|
|
|
|
|
2011-04-08 22:08:28 +08:00
|
|
|
make
|
2010-05-22 06:25:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-02-06 04:46:15 +08:00
|
|
|
package() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
2011-04-08 22:08:28 +08:00
|
|
|
make DESTDIR=${pkgdir} install
|
2010-05-22 06:25:44 +08:00
|
|
|
|
|
|
|
cd ${srcdir}/mishaaq-kcm_touchpad-00370b5
|
2011-04-08 22:08:28 +08:00
|
|
|
make DESTDIR=${pkgdir} install
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2012-12-04 16:51:47 +08:00
|
|
|
cd ${srcdir}/wacomtablet-1.3.7-2
|
2011-04-08 22:08:28 +08:00
|
|
|
make DESTDIR=${pkgdir} install
|
2010-05-22 06:25:44 +08:00
|
|
|
|
|
|
|
cd ${srcdir}/favorites-0.1
|
2011-04-08 22:08:28 +08:00
|
|
|
make DESTDIR=${pkgdir} install
|
2010-05-22 06:25:44 +08:00
|
|
|
|
|
|
|
# install pam configuration
|
|
|
|
install -D -m644 ${srcdir}/kde.pam ${pkgdir}/etc/pam.d/kde
|
|
|
|
install -D -m644 ${srcdir}/kde-np.pam ${pkgdir}/etc/pam.d/kde-np
|
|
|
|
install -D -m644 ${srcdir}/kscreensaver.pam ${pkgdir}/etc/pam.d/kscreensaver
|
|
|
|
|
|
|
|
# sane path for env and shutdown dir
|
|
|
|
install -d -m755 ${pkgdir}/etc/kde/{env,shutdown}
|
|
|
|
|
|
|
|
# install session
|
2012-02-06 04:46:15 +08:00
|
|
|
install -D -m 644 ${srcdir}/${pkgname}-${pkgver}/kdm/kfrontend/sessions/kde-plasma.desktop \
|
2010-11-29 00:20:36 +08:00
|
|
|
${pkgdir}/etc/X11/sessions/kde-plasma.desktop
|
2012-02-06 04:46:15 +08:00
|
|
|
install -D -m 644 ${srcdir}/${pkgname}-${pkgver}/kdm/kfrontend/sessions/kde-plasma-safe.desktop \
|
2010-11-29 00:20:36 +08:00
|
|
|
${pkgdir}/etc/X11/sessions/kde-plasma-safe.desktop
|
2010-05-22 06:25:44 +08:00
|
|
|
|
|
|
|
# also install kdm clean default config
|
2012-02-06 04:46:15 +08:00
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}/kdm
|
2010-05-22 06:25:44 +08:00
|
|
|
make DESTDIR=${pkgdir} GENKDMCONF_FLAGS="--no-old --no-backup --no-in-notice" install
|
|
|
|
|
|
|
|
# copy branding stuff
|
|
|
|
mkdir -p ${pkgdir}/usr/share/icons/oxygen/scalable/places/
|
2013-02-03 04:59:36 +08:00
|
|
|
|
|
|
|
cp -f ${srcdir}/chakra-branding/start-here-branding.svgz ${pkgdir}/usr/share/icons/oxygen/scalable/places/start-here-branding.svgz
|
|
|
|
cp -f ${srcdir}/chakra-branding/kdemod-start-here-branding.svgz ${pkgdir}/usr/share/icons/oxygen/scalable/places/kdemod-start-here-branding.svgz
|
|
|
|
|
|
|
|
cp -f ${srcdir}/chakra-branding/branding-icon.png ${pkgdir}/usr/share/apps/kdm/themes/oxygen/branding-icon.png
|
|
|
|
|
|
|
|
cd ${srcdir}/chakra-branding/
|
2010-05-22 06:25:44 +08:00
|
|
|
for i in 256 128 64 48 32 22 16; do
|
|
|
|
mkdir -p ${pkgdir}/usr/share/icons/oxygen/${i}x${i}/places/
|
|
|
|
install -D -m644 start-here-branding-${i}.png ${pkgdir}/usr/share/icons/oxygen/${i}x${i}/places/start-here-branding.png
|
2013-02-03 04:59:36 +08:00
|
|
|
install -D -m644 kdemod-start-here-branding-${i}.png ${pkgdir}/usr/share/icons/oxygen/${i}x${i}/places/kdemod-start-here-branding.png
|
2010-05-22 06:25:44 +08:00
|
|
|
done
|
|
|
|
|
2011-02-06 21:13:33 +08:00
|
|
|
# edit kdmrc
|
2010-05-22 06:25:44 +08:00
|
|
|
sed -i -e s,#GUIStyle=.*,GUIStyle=Oxygen,g ${pkgdir}/usr/share/config/kdm/kdmrc
|
|
|
|
sed -i -e s,#ColorScheme=.*,ColorScheme=Oxygen,g ${pkgdir}/usr/share/config/kdm/kdmrc
|
2011-02-06 21:13:33 +08:00
|
|
|
sed -i -e s,Theme=/usr.*,Theme=/usr/share/apps/kdm/themes/horos,g ${pkgdir}/usr/share/config/kdm/kdmrc
|
2010-09-04 06:51:56 +08:00
|
|
|
sed -i -e s,MinShowUID=.*,MinShowUID=1000,g ${pkgdir}/usr/share/config/kdm/kdmrc
|
2012-11-02 14:36:17 +08:00
|
|
|
sed -i -e 's/halt/poweroff/' ${pkgdir}/usr/share/config/kdm/kdmrc
|
2010-05-22 06:25:44 +08:00
|
|
|
|
|
|
|
# WORKAROUND -> put ggl stuff into ggl package
|
|
|
|
rm -rf ${pkgdir}/usr/share/apps/plasma/plasmoids/ggl_photos
|
|
|
|
rm -rf ${pkgdir}/usr/share/apps/plasma/plasmoids/ggl_rss
|
|
|
|
rm -rf ${pkgdir}/usr/share/kde4/services/plasma-applet-ggl-photos.desktop
|
|
|
|
rm -rf ${pkgdir}/usr/share/kde4/services/plasma-applet-ggl-rss.desktop
|
|
|
|
|
2011-07-23 02:02:15 +08:00
|
|
|
# Put a wallpaper into the package
|
2010-05-22 06:25:44 +08:00
|
|
|
mkdir -p ${pkgdir}/usr/share/wallpapers
|
2011-07-23 02:02:15 +08:00
|
|
|
cp -rv ${srcdir}/kde-wallpapers-${_kdever}/${_default_wp} ${pkgdir}/usr/share/wallpapers
|
2010-05-22 06:25:44 +08:00
|
|
|
|
2012-08-30 08:17:20 +08:00
|
|
|
# Adding powerdevil option files
|
|
|
|
mkdir -p ${pkgdir}/usr/include/powerdevil
|
|
|
|
cp -rv ${srcdir}/${pkgname}-${_kdever}/powerdevil/daemon/powerdevilaction.h ${pkgdir}/usr/include/powerdevil
|
|
|
|
cp -rv ${srcdir}/${pkgname}-${_kdever}/powerdevil/daemon/powerdevilactionconfig.h ${pkgdir}/usr/include/powerdevil
|
|
|
|
cp -rv ${srcdir}/${pkgname}-${_kdever}/powerdevil/daemon/powerdevilpolicyagent.h ${pkgdir}/usr/include/powerdevil
|
2012-09-10 05:15:09 +08:00
|
|
|
|
|
|
|
# Systemd .service file
|
|
|
|
install -D -m644 "${srcdir}"/kdm.service "${pkgdir}"/usr/lib/systemd/system/kdm.service
|
2012-12-20 03:12:36 +08:00
|
|
|
|
|
|
|
# kde-base-artwork conflict, will be corrected in RC 2
|
|
|
|
rm -rf ${pkgdir}/usr/share/apps/ksplash/Themes/Default/
|
2010-05-22 06:25:44 +08:00
|
|
|
}
|