Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _pkgname=cinnamon
- pkgname=${_pkgname}-git
- pkgver=2855.39fc3a7
- pkgrel=1
- pkgdesc="Linux desktop which provides advanced innovative features and a traditional user experience"
- arch=('i686' 'x86_64')
- url="https://github.com/linuxmint/Cinnamon"
- license=('GPL')
- depends=('accountsservice' 'caribou' 'clutter-gtk' 'cjs-git' 'blueman-git'
- 'gnome-icon-theme' 'gnome-menus' 'cinnamon-settings-daemon-git' 'cinnamon-session-git'
- 'gnome-themes-standard' 'gstreamer0.10' 'gksu' 'libgnome-keyring' 'librsvg'
- 'networkmanager' 'muffin-git' 'pygtk' 'python2-dbus' 'python2-imaging'
- 'python2-pam' 'python2-pexpect' 'python2-pyinotify' 'python2-lxml' 'webkitgtk3')
- makedepends=('gnome-common' 'intltool' 'git')
- optdepends=('cinnamon-control-center: extended configurations for Cinnamon'
- 'cinnamon-screensaver: lock screen'
- 'gucharmap: show character table from Keyboard applet'
- 'libgnomekbd: show keyboard layout from Keyboard applet'
- 'nemo: the official Cinnamon file manager (forked from Nautilus)')
- options=('!libtool' '!emptydirs')
- provides=("${_pkgname}")
- conflicts=("${_pkgname}")
- install=${pkgname}.install
- source=('git+https://github.com/linuxmint/Cinnamon.git')
- sha512sums=('SKIP')
- pkgver() {
- cd Cinnamon
- echo $(git rev-list --count master).$(git rev-parse --short master)
- }
- build() {
- cd "${srcdir}/Cinnamon"
- autoreconf -vfi
- intltoolize -f
- ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/cinnamon --localstatedir=/var --disable-static --disable-schemas-compile --disable-schemas-install --enable-compile-warnings=yes
- make
- }
- package() {
- cd "${srcdir}/Cinnamon"
- make DESTDIR="${pkgdir}/" install
- # Python 2 fix
- sed -i \
- -e 's|^\(#!.*python\)$|\12|g' \
- -e '/python[ \t]\+[-a-zA-Z0-9]\+$/ s|^\(#!.*python\)[ \t]*\(.*\)$|\12 \2|g' \
- "${pkgdir}/usr/bin/cinnamon-extension-tool" \
- "${pkgdir}/usr/bin/cinnamon-settings" \
- "${pkgdir}/usr/bin/cinnamon-menu-editor" \
- "${pkgdir}/usr/bin/cinnamon-screensaver-lock-dialog"
- find "${pkgdir}" -type f -name *py -exec sed -i \
- -e 's|^\(#!.*python\)$|\12|g' \
- -e '/python[ \t]\+[-a-zA-Z0-9]\+$/ s|^\(#!.*python\)[ \t]*\(.*\)$|\12 \2|g' '{}' \;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement