blob: dabaa594c2cce8aae066a066b905743ad858b0d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Based on the file created for Arch Linux by:
# Eli Schwartz <eschwartz@archlinux.org>
# Maintainer: Andrey Vetrov <vetrov at mail dot ru>
pkgname=cinnamon-slim
pkgver=4.8.0
pkgrel=1
_commit=7dcb5e73ba4aeb41ece18680515f8a3466b4d076 # tags/4.6.6^0
pkgdesc="Innovative Linux desktop. Slim version."
arch=('x86_64')
url="https://github.com/linuxmint/${pkgname%-slim}"
license=('GPL2')
provides=("cinnamon=$pkgver")
conflicts=('cinnamon')
replaces=('cinnamon')
depends=('accountsservice' 'caribou' 'cinnamon-control-center' 'cinnamon-menus' 'cinnamon-screensaver'
'cinnamon-session' 'cinnamon-settings-daemon' 'cjs' 'gnome-backgrounds'
'gnome-themes-extra' 'gstreamer' 'libcroco' 'libgnomekbd' 'libkeybinder3' 'librsvg' 'muffin'
'nemo' 'polkit-gnome' 'python-cairo' 'python-dbus' 'python-gobject' 'python-pam'
'python-pexpect' 'python-pillow' 'python-pyinotify' 'python-pytz' 'python-tinycss2'
'python-xapp' 'timezonemap' 'xapps')
optdepends=('blueberry: Bluetooth support'
'cinnamon-translations: i18n'
'gnome-panel: fallback mode'
'metacity: fallback mode'
'system-config-printer: printer settings')
makedepends=('git' 'intltool' 'gtk-doc' 'gobject-introspection')
options=('!emptydirs')
source=("git+${url}.git#commit=${_commit}"
"0001-cinnamon-settings-don-t-rely-on-the-presence-of-cinn.patch"
"set_wheel.diff"
"default-theme.patch")
sha512sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')
prepare() {
cd "${srcdir}"/${pkgname%-slim}
# Check for the cc-panel module path, not for the irrelevant binary
# https://github.com/linuxmint/cinnamon/pull/7382
patch --no-backup-if-mismatch -p1 -i ../0001-cinnamon-settings-don-t-rely-on-the-presence-of-cinn.patch
# Use wheel group instread of sudo (taken from Fedora)
patch -Np1 -i ../set_wheel.diff
# Set default theme to 'cinnamon'
patch -Np1 -i ../default-theme.patch
# Replace MintInstall with GNOME Software
sed -i 's/mintinstall.desktop/org.gnome.Software.desktop/' data/org.cinnamon.gschema.xml.in
# Add polkit agent to required components
sed -i 's/RequiredComponents=\(.*\)$/RequiredComponents=\1polkit-gnome-authentication-agent-1;/' \
files/cinnamon*.session.in
# https://github.com/linuxmint/cinnamon/issues/3575#issuecomment-374887122
# 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
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "${srcdir}"/${pkgname%-slim}
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/cinnamon \
--localstatedir=/var \
--disable-static \
--disable-gtk-doc \
--disable-schemas-compile \
--disable-networkmanager \
--enable-compile-warnings=yes
# https://bugzilla.gnome.org/show_bug.cgi?id=656231
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "${srcdir}"/${pkgname%-slim}
make DESTDIR="${pkgdir}" install
}
|