updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cinnamon / PKGBUILD
blob511e7d58fccb8b1cb7f91654be5aa45ce9263584
1 # Maintainer: M0Rf30
3 pkgname=cinnamon
4 pkgver=1.2
5 pkgrel=3
6 pkgdesc="Linux desktop which provides advanced innovative features and a traditional user experience"
7 arch=('i686' 'x86_64')
8 url="http://cinnamon.linuxmint.com/"
9 license=('GPL')
10 depends=('gnome-menus' 'libpulse' 'gnome-desktop' 'python' 'gnome-bluetooth' 'gjs' 'libcroco' 'folks' 'telepathy-logger' 'networkmanager' 'caribou' 'nautilus' 'telepathy-mission-control' 'gnome-common' 'gnome-session' 'accountsservice' 'libgnomekbd' 'gnome-settings-daemon' 'gnome-panel' 'notification-daemon' 'muffin-git' 'python2-gconf')
11 makedepends=('intltool')
12 provides=('cinnamon')
13 conflicts=('cinnamon-git')
14 options=('!libtool')
15 install=${pkgname}.install
16 source=('cinnamon.session'
17         'cinnamon.xsession'
18         'gnome-session-cinnamon')
20 build() {
21   cd ${srcdir}
22   wget -O cinnamon.tar.gz https://github.com/linuxmint/Cinnamon/tarball/$pkgver
23   tar xvf cinnamon.tar.gz
24   cd linuxmint*
25   ./autogen.sh --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/cinnamon --localstatedir=/var --disable-static --disable-schemas-compile --disable-schemas-install --enable-compile-warnings=yes
26   make
29 package() {
30   cd ${srcdir}
31   cd linuxmint*
32   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}/" install
34   # GConf2 stuff
35   install -dm755 "${pkgdir}/usr/share/gconf/schemas/"
36   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname%-*}.schemas" --domain cinnamon "${pkgdir}"/etc/gconf/schemas/*.schemas
37   rm "${pkgdir}"/etc/gconf/schemas/*.schemas
39   # Python 2 fix
40   sed -i 's|^\(#!.*python\)$|\12|g' "${pkgdir}/usr/bin/cinnamon-extension-tool"
41   sed -i 's|^\(#!.*python\)$|\12|g' "${pkgdir}/usr/bin/cinnamon-settings"
42   sed -i 's|^\(#!.*python\)$|\12|g' "${pkgdir}/usr/lib/cinnamon-settings/cinnamon-settings.py"
43   
44   # Install GNOME Session manager session file
45   install -dm755 "${pkgdir}/usr/share/gnome-session/sessions/"
46   install -m644 "${srcdir}/cinnamon.session" "${pkgdir}/usr/share/gnome-session/sessions/cinnamon.session"
47   
48   # Install X11 session file
49   install -dm755 "${pkgdir}/usr/share/xsessions/"
50   install -m644 "${srcdir}/cinnamon.xsession" "${pkgdir}/usr/share/xsessions/cinnamon.desktop"
51   install -dm755 "${pkgdir}/usr/share/apps/kdm/sessions"
52   install -m644 "${srcdir}/cinnamon.xsession" "${pkgdir}/usr/share/apps/kdm/sessions/cinnamon.desktop"
53   
54   # Install Session Wrapper
55   install -m644 "${srcdir}/gnome-session-cinnamon" "${pkgdir}/usr/bin/gnome-session-cinnamon"
56   chmod +x ${pkgdir}/usr/bin/gnome-session-cinnamon
60 md5sums=('e55304f5859e17226658dc237044c17f'
61          '5d4e252efcb688406eadba5c93e29bff'
62          '106774e10707554ea49fc223a59e5d21')