void-packages/srcpkgs/cinnamon/template
2018-06-30 18:56:59 +02:00

70 lines
3.1 KiB
Bash

# Template file for 'cinnamon'
pkgname=cinnamon
version=3.8.6
revision=2
wrksrc="Cinnamon-${version}"
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 pkg-config gobject-introspection
gettext-devel glib-devel intltool xmlto gtk-doc autoconf-archive"
makedepends="cjs-devel clutter-gtk-devel cinnamon-menus-devel gstreamer1-devel
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 gtk+3-devel
cinnamon-desktop-devel"
depends="
accountsservice caribou cinnamon-settings-daemon>=${version%.*}
cinnamon-session>=${version%.*} muffin>=${version%.*}
cinnamon-control-center>=${version%.*} cinnamon-screensaver>=${version%.*}
cinnamon-translations>=${version%.*} nemo>=${version%.*}
gnome-themes-standard gnome-themes-standard-metacity gnome-backgrounds
network-manager-applet polkit-gnome upower>=0.99.7 libkeybinder3 python3-dbus
python3-gobject python3-pam python3-pexpect python3-Pillow python3-inotify"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later, LGPL-2.0-or-later"
homepage="http://developer.linuxmint.com/projects/cinnamon-projects.html/"
changelog="https://raw.githubusercontent.com/linuxmint/Cinnamon/${version}/debian/changelog"
distfiles="https://github.com/linuxmint/${pkgname}/archive/${version}.tar.gz"
checksum=b4d4a50713a9e373e987c25c9f9ffa8ba63b0673cfedf6aa93dd394359a094cc
nocross="gobject-introspection"
pycompile_version="$py3_ver"
pycompile_dirs="
/usr/share/cinnamon/cinnamon-slideshow
/usr/share/cinnamon/cinnamon-settings-users
/usr/share/cinnamon/cinnamon-settings
/usr/share/cinnamon/cinnamon-screensaver-lock-dialog
/usr/share/cinnamon/cinnamon-menu-editor
/usr/share/cinnamon/cinnamon-looking-glass
/usr/share/cinnamon/cinnamon-json-makepot
/usr/share/cinnamon/cinnamon-desktop-editor"
do_check() {
:
}
pre_configure() {
# Add polkit agent to required components
sed -i 's/RequiredComponents=\(.*\)$/RequiredComponents=\1polkit-gnome-authentication-agent-1;/' files/usr/share/cinnamon-session/sessions/cinnamon*.session
# 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/share/cinnamon/cinnamon-settings/modules/cs_backgrounds.py
# Fix selected background color in Cinnamon Settings for Adwaita theme
sed -i 's/@selected_bg_color;/@theme_selected_bg_color;/' \
files/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py
# Remove broken symlink
rm -f files/etc/xdg/menus/cinnamon-applications-merged
NOCONFIGURE=1 ./autogen.sh
}