summaryrefslogtreecommitdiffstats
path: root/cinnamon/Pkgfile
blob: 46a6dfef53a28b7b9eed1f19447e8fe9c85cfe09 (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
# Description: Fork de Gnome-Shell.
# URL: http://cinnamon.linuxmint.com/
# Maintainer: NuTyX GNOME team
# Packager: piernov <piernov@piernov.org>
# Depends on: ca-certificates, gnome-menus, pulseaudio, gnome-desktop, gnome-bluetooth, gjs, libcrocro, folks, telepathy-logger, networkmanager, nautilus, gnome-session, muffin, gconf, metacity, libgnomekbd, notification-daemon, gnome-panel, gnome-settings-daemon, accountsservice
# Run on: ca-certificates,gnome-menus,pulseaudio,gnome-desktop,gnome-bluetooth,gjs,libcrocro,folks,telepathy-logger,networkmanager,nautilus,gnome-session,muffin,gconf,metacity,libgnomekbd,notification-daemon,gnome-panel,gnome-settings-daemon,accountsservice

name=cinnamon
version=1.4-UP3
release=1
source=(http://packages.linuxmint.com/pool/main/c/$name/${name}_$version.tar.gz
	fix-build-with-gnome-bluetooth-3.4.patch
	fix-cinnamon-settings.patch)

build() {
	cd Cinnamon

	export CFLAGS="${CFLAGS} -Wno-deprecated-declarations"

	patch -p1 < ../fix-build-with-gnome-bluetooth-3.4.patch
	patch -p0 < ../fix-cinnamon-settings.patch

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib/$name \
		--localstatedir=/var \
		--disable-schemas-compile \
		--disable-schemas-install \
		--enable-compile-warnings=yes
	make
	make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=$PKG install
        rm -rf $PKG/usr/share/gtk-doc

	sed -i \
		-e 's|^\(#!.*python\)$|\12|g' \
		-e '/python[ \t]\+[-a-zA-Z0-9]\+$/ s|^\(#!.*python\)[ \t]*\(.*\)$|\12 \2|g' \
		$PKG/usr/bin/$name-extension-tool \
		$PKG/usr/lib/$name-settings/$name-settings.py \
		$PKG/usr/bin/$name-settings \
		$PKG/usr/bin/$name-menu-editor

	mkdir -p $PKG/usr/share/apps/kdm/sessions/
	cp $PKG/usr/share/xsessions/$name.desktop $PKG/usr/share/apps/kdm/sessions/

	sed "s|/usr/lib/gnome-session/|/usr/lib/|" -i $PKG/usr/share/gnome-session/sessions/$name.session

	install -dm755 $PKG/usr/share/gconf/schemas/
	gconf-merge-schema $PKG/usr/share/gconf/schemas/$name.schemas \
		--domain cinnamon $PKG/etc/gconf/schemas/*.schemas
	rm $PKG/etc/gconf/schemas/*.schemas
	rm -r $PKG/etc/gconf/
}