updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / cinnamon-settings-git / PKGBUILD
blob6ebf041d5c27b6a843e13b802fd32922b4efadc2
1 # Maintainer: crazyelf5
3 pkgname=cinnamon-settings-git
4 pkgver=20120116
5 pkgrel=1
6 pkgdesc="Cinnamon configuration tool"
7 arch=('any')
8 url="https://github.com/linuxmint/cinnamon-settings"
9 license=('GPL')
10 depends=('cinnamon-git' 'python2' 'python2-gconf' 'python2-gobject2' 'python2-gobject' 'librsvg' 'pygtk')
11 makedepends=('git')
13 _gitroot=git://github.com/linuxmint/cinnamon-settings.git
14 _gitname=cinnamon-settings
16 build() {
17   msg "Connecting to GIT server...."
19   if [[ -d "$_gitname" ]]; then
20     cd "$_gitname" && git pull origin
21     msg "The local files are updated."
22   else
23     git clone "$_gitroot" "$_gitname"
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting build..."
29   cp -rf "$srcdir/cinnamon-settings/usr" "$pkgdir/"
30   cd "$pkgdir/"
32   # Sed for Python2
33   sed -e "s_env python_&2_;s_bin/python_&2_" \
34       -i `egrep -rl "(env python|bin/python)" .`
37 # vim:set ts=2 sw=2 et: