Advertisement
Guest User

cinnamon-git PKGBUILD

a guest
Jul 25th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.24 KB | None | 0 0
  1.  
  2. _pkgname=cinnamon
  3. pkgname=${_pkgname}-git
  4. pkgver=2855.39fc3a7
  5. pkgrel=1
  6. pkgdesc="Linux desktop which provides advanced innovative features and a traditional user experience"
  7. arch=('i686' 'x86_64')
  8. url="https://github.com/linuxmint/Cinnamon"
  9. license=('GPL')
  10. depends=('accountsservice' 'caribou' 'clutter-gtk' 'cjs-git' 'blueman-git'
  11.          'gnome-icon-theme' 'gnome-menus' 'cinnamon-settings-daemon-git' 'cinnamon-session-git'
  12.          'gnome-themes-standard' 'gstreamer0.10' 'gksu' 'libgnome-keyring' 'librsvg'
  13.          'networkmanager' 'muffin-git' 'pygtk' 'python2-dbus' 'python2-imaging'
  14.          'python2-pam' 'python2-pexpect' 'python2-pyinotify' 'python2-lxml' 'webkitgtk3')
  15. makedepends=('gnome-common' 'intltool' 'git')
  16. optdepends=('cinnamon-control-center: extended configurations for Cinnamon'
  17.             'cinnamon-screensaver: lock screen'
  18.             'gucharmap: show character table from Keyboard applet'
  19.             'libgnomekbd: show keyboard layout from Keyboard applet'
  20.             'nemo: the official Cinnamon file manager (forked from Nautilus)')
  21. options=('!libtool' '!emptydirs')
  22. provides=("${_pkgname}")
  23. conflicts=("${_pkgname}")
  24. install=${pkgname}.install
  25. source=('git+https://github.com/linuxmint/Cinnamon.git')
  26. sha512sums=('SKIP')
  27.  
  28. pkgver() {
  29.   cd Cinnamon
  30.   echo $(git rev-list --count master).$(git rev-parse --short master)
  31. }
  32.  
  33. build() {
  34.   cd "${srcdir}/Cinnamon"
  35.  
  36.   autoreconf -vfi
  37.   intltoolize -f
  38.   ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/cinnamon --localstatedir=/var --disable-static --disable-schemas-compile --disable-schemas-install --enable-compile-warnings=yes
  39.   make
  40. }
  41.  
  42. package() {
  43.   cd "${srcdir}/Cinnamon"
  44.   make DESTDIR="${pkgdir}/" install
  45.  
  46.   # Python 2 fix
  47.   sed -i \
  48.     -e 's|^\(#!.*python\)$|\12|g' \
  49.     -e '/python[ \t]\+[-a-zA-Z0-9]\+$/ s|^\(#!.*python\)[ \t]*\(.*\)$|\12 \2|g' \
  50.     "${pkgdir}/usr/bin/cinnamon-extension-tool" \
  51.     "${pkgdir}/usr/bin/cinnamon-settings" \
  52.     "${pkgdir}/usr/bin/cinnamon-menu-editor" \
  53.     "${pkgdir}/usr/bin/cinnamon-screensaver-lock-dialog"
  54.   find "${pkgdir}" -type f -name *py -exec sed -i \
  55.     -e 's|^\(#!.*python\)$|\12|g' \
  56.     -e '/python[ \t]\+[-a-zA-Z0-9]\+$/ s|^\(#!.*python\)[ \t]*\(.*\)$|\12 \2|g' '{}' \;
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement