void-packages/srcpkgs/kde-workspace/template

94 lines
2.9 KiB
Plaintext
Raw Normal View History

2013-06-17 10:45:17 +02:00
# Template file for 'kde-workspace'
2014-08-06 02:21:26 +02:00
_kdeversion=4.13.3
2013-06-17 10:45:17 +02:00
pkgname=kde-workspace
2014-08-06 02:21:26 +02:00
version=4.11.11
revision=2
2013-06-17 10:45:17 +02:00
short_desc="Provides the interface and basic tools for the KDE workspace"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL, LGPL, FDL"
homepage="http://www.kde.org"
2014-08-06 02:21:26 +02:00
distfiles="http://download.kde.org/stable/4.13.3/src/${pkgname}-${version}.tar.xz"
checksum=f188b003c56d2a40f71d4eea8c91b7ae0febcf25c252c383913281fce73c4d73
2013-06-17 10:45:17 +02:00
build_style=cmake
2014-08-06 02:21:26 +02:00
configure_args="-Wno-dev -DKDE4_BUILD_TESTS=OFF -DSYSCONF_INSTALL_DIR=/etc
-DWITH_Xmms=OFF -DWITH_libgps=OFF -DWITH_NepomukCore=OFF -DWITH_Soprano=OFF"
2013-06-17 10:45:17 +02:00
2014-08-06 02:21:26 +02:00
# XXX prison.
2013-06-17 10:45:17 +02:00
hostmakedepends="cmake automoc4 pkg-config"
2014-08-06 02:21:26 +02:00
makedepends="libressl-devel qt-devel phonon-devel libdbusmenu-qt-devel strigi-devel
kdelibs-devel>=${_kdeversion} kactivities-devel>=${_kdeversion} xcb-util-keysyms-devel
2013-06-17 10:45:17 +02:00
qimageblitz-devel xcb-util-image-devel xcb-util-renderutil-devel boost-devel
libjpeg-turbo-devel libpng-devel libXcursor-devel libXi-devel libxkbfile-devel
libXrandr-devel libXfixes-devel libSM-devel libXcomposite-devel libXdamage-devel
2014-08-06 02:21:26 +02:00
libXtst-devel libXft-devel glib-devel fontconfig-devel kdepimlibs-devel>=${_kdeversion}
libsensors-devel wayland-devel MesaLib-devel pam-devel libusb-compat-devel>=0.1.5_3
NetworkManager-devel pciutils-devel libraw1394-devel python-devel libqalculate-devel
akonadi-devel qjson-devel"
depends="kde-wallpapers>=${_kdeversion} kde-base-artwork>=${_kdeversion}"
conf_files="
/etc/kdm/kdmrc
/etc/ksysguarddrc
/etc/pam.d/kde-np.pam
/etc/pam.d/kde.pam
/etc/pam.d/kscreensaver.pam"
replaces="runit-void<20141013_2"
system_accounts="kdm"
kdm_homedir="/var/lib/kdm"
make_dirs="
/etc/kde/env 0755 root root
/etc/kde/shutdown 0755 root root
/var/lib/kdm 0755 kdm kdm"
2013-06-17 10:45:17 +02:00
2014-08-06 02:21:26 +02:00
# Package build options
build_options="systemd"
if [ "$build_option_systemd" ]; then
configure_args+=" -DWITH_CkConnector=OFF"
else
configure_args+=" -DWITH_CkConnector=ON"
makedepends+=" ConsoleKit-devel"
fi
2013-12-17 11:54:17 +01:00
pre_configure() {
sed -e "s,@PKG_SYSCONFDIR@,/etc,g" -i kdm/kcm/main.cpp
}
2013-06-17 10:45:17 +02:00
post_install() {
vmkdir etc/pam.d
for f in kde kde-np kscreensaver; do
install -m644 ${FILESDIR}/${f}.pam ${DESTDIR}/etc/pam.d/${f}
done
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/kdm.service 644 usr/lib/systemd/system
fi
vsv kdm
2013-06-17 10:45:17 +02:00
vmkdir usr/share/xsessions
ln -sf /usr/share/apps/kdm/sessions/kde-plasma{,-safe}.desktop \
${DESTDIR}/usr/share/xsessions
2013-12-17 11:54:17 +01:00
install -Dm644 ${DESTDIR}/usr/share/config/kdm/kdmrc \
${DESTDIR}/etc/kdm/kdmrc
2013-06-17 10:45:17 +02:00
}
kde-workspace-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/share/apps/cmake
}
}
2013-12-17 11:54:17 +01:00
kde-python_package() {
short_desc+=" - Python 2 bindings"
pycompile_module="PyKDE4"
pycompile_dirs="usr/share/apps/plasma_scriptengine_python"
pkg_install() {
vmove usr/lib/python2.7
vmove usr/share/apps/plasma_scriptengine_python
vmove "/usr/share/kde4/services/plasma-scriptengine*"
}
}