2013-12-16 17:09:19 +01:00
# Template file for 'cinnamon'
pkgname = cinnamon
2015-07-11 10:45:53 +02:00
version = 2.6.13
2015-06-07 20:16:30 +02:00
revision = 1
2015-01-24 10:45:29 +01:00
wrksrc = " Cinnamon- ${ version } "
2013-12-16 17:09:19 +01:00
short_desc = "GNOME3 fork of Linux Mint with GNOME2 aspect"
build_style = gnu-configure
2015-05-30 08:38:45 +02:00
configure_args = " --disable-static --disable-schemas-compile
--enable-compile-warnings= no LDFLAGS = "
2013-12-16 17:09:19 +01:00
hostmakedepends = " automake libtool gnome-common pkg-config gobject-introspection
2015-01-24 10:45:29 +01:00
gettext-devel glib-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
2015-06-07 20:16:30 +02:00
libgnome-keyring-devel NetworkManager-devel libcroco-devel gtk+3-devel"
2014-08-30 20:37:55 +02:00
depends = "
2015-06-07 20:16:30 +02:00
accountsservice caribou cinnamon-settings-daemon>= ${ version %.* } cinnamon-session>= ${ version %.* } muffin>= ${ version %.* }
cinnamon-control-center>= ${ version %.* } cinnamon-screensaver>= ${ version %.* } cinnamon-translations>= ${ version %.* } nemo>= ${ version %.* }
2015-06-06 18:13:07 +02:00
gnome-themes-standard gnome-themes-standard-metacity gnome-backgrounds network-manager-applet
python-cairo python-dbus python-pam python-pexpect python-inotify python-lxml python-Pillow
polkit-gnome upower0"
2015-04-10 09:16:30 +02:00
maintainer = "Juan RP <xtraeme@voidlinux.eu>"
2013-12-16 17:09:19 +01:00
license = "GPL-3"
homepage = "http://cinnamon.linuxmint.com/"
2015-01-24 10:45:29 +01:00
distfiles = " https://github.com/linuxmint/ ${ pkgname } /archive/ ${ version } .tar.gz "
2015-07-11 10:45:53 +02:00
checksum = f349403901bf3e84cda2ebd425dc6f58850059092775e285862067f120debe86
2015-06-15 07:50:19 +02:00
2015-06-07 20:16:30 +02:00
CFLAGS += "-I/usr/include/gtk-3.0"
2013-12-16 17:09:19 +01:00
2015-01-25 11:39:25 +01:00
pycompile_dirs = "
/usr/lib/cinnamon-slideshow
/usr/lib/cinnamon-settings
/usr/lib/cinnamon-screensaver-lock-dialog
/usr/lib/cinnamon-menu-editor
/usr/lib/cinnamon-looking-glass
/usr/lib/cinnamon-json-makepot
/usr/lib/cinnamon-desktop-editor"
2013-12-16 17:09:19 +01:00
pre_configure( ) {
2014-08-31 13:41:59 +02:00
# Add polkit agent to required components
sed -i 's/RequiredComponents=\(.*\)$/RequiredComponents=\1polkit-gnome-authentication-agent-1;/' files/usr/share/cinnamon-session/sessions/cinnamon*.session
2013-12-16 17:09:19 +01:00
2015-07-05 10:27:46 +02:00
# fix for the python2 PAM module
2013-12-16 17:09:19 +01:00
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
2015-01-24 10:45:29 +01:00
# Fix selected background color in Cinnamon Settings for Adwaita theme
sed -i 's/@selected_bg_color;/@theme_selected_bg_color;/' \
files/usr/lib/cinnamon-settings/cinnamon-settings.py
2013-12-16 17:09:19 +01:00
NOCONFIGURE = 1 ./autogen.sh
}