void-packages/srcpkgs/cinnamon/template

57 lines
2.4 KiB
Plaintext
Raw Normal View History

2013-12-16 17:09:19 +01:00
# Template file for 'cinnamon'
#
pkgname=cinnamon
2014-08-30 18:39:43 +02:00
version=2.2.16
revision=2
2013-12-16 17:09:19 +01:00
patch_args="-Np1"
short_desc="GNOME3 fork of Linux Mint with GNOME2 aspect"
build_style=gnu-configure
configure_args="--disable-static --disable-schemas-compile --enable-compile-warnings=no"
hostmakedepends="automake libtool gnome-common pkg-config gobject-introspection
gettext-devel intltool xmlto docbook-xml gtk-doc git"
2014-08-30 18:39:43 +02:00
makedepends="cjs-devel clutter-gtk-devel cinnamon-menus-devel gstreamer1-devel
2013-12-16 17:09:19 +01:00
muffin-devel webkitgtk-devel libgnomekbd-devel polkit-devel libcanberra-devel
startup-notification-devel pulseaudio-devel dbus-glib-devel GConf-devel
libgnome-keyring-devel NetworkManager-devel libcroco-devel"
depends="
accountsservice caribou cinnamon-settings-daemon cinnamon-session muffin
cinnamon-control-center cinnamon-screensaver cinnamon-translations nemo
gnome-icon-theme gnome-themes-standard librsvg network-manager-applet
pygtk python-dbus python-pam python-pexpect python-inotify
python-lxml python-Pillow network-manager-applet polkit-gnome"
2013-12-16 17:09:19 +01:00
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://cinnamon.linuxmint.com/"
do_fetch() {
git clone -b ${version} git://github.com/linuxmint/Cinnamon ${pkgname}-${version}
}
pre_configure() {
# Fix required components
sed -i 's/cinnamon-fallback-mount-helper;/polkit-cinnamon-authentication-agent-1;/' files/usr/share/cinnamon-session/sessions/cinnamon*.session
2013-12-16 17:09:19 +01:00
# fix for the python2 PAM module
sed -i 's:import PAM:import pam:' files/usr/lib/cinnamon-settings/modules/cs_user.py
# Use pkexec instead of gksu
sed -i 's/gksu/pkexec/' files/usr/bin/cinnamon-settings-users
# Check for the cc-panel path, not for the unneeded binary
sed -i 's|/usr/bin/cinnamon-control-center|/usr/lib/cinnamon-control-center-1/panels|' files/usr/bin/cinnamon-settings
# Cinnamon has no upstream backgrounds, use GNOME backgrounds instead
sed -i 's|/usr/share/cinnamon-background-properties|/usr/share/gnome-background-properties|' \
files/usr/lib/cinnamon-settings/modules/cs_backgrounds.py
# Prefix 'System Settings' with 'Cinnamon' to avoid confusion with gnome-control-center
sed -i 's/^Name\(.*\)=\(.*\)/Name\1=Cinnamon \2/' files/usr/share/applications/cinnamon-settings{,-users}.desktop
NOCONFIGURE=1 ./autogen.sh
}
post_install() {
vinstall ${FILESDIR}/org.cinnamon.settings-users.policy 644 usr/share/polkit-1/actions
vinstall ${FILESDIR}//polkit-cinnamon-authentication-agent-1.desktop 644 usr/share/applications
}