updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / cinnamon-settings-git / PKGBUILD
blobf2b239ffe2012a0d0545ee36352543feab8c6302
1 # Maintainer: crazyelf5
3 pkgname=cinnamon-settings-git
4 pkgver=20120110
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' 'python2' 'python2-gconf' 'python2-gobject2' '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 -r cinnamon-settings/usr "$pkgdir"
30   cd "$pkgdir"
31   # Sed for Python2
32   sed -e "s_env python_&2_;s_bin/python_&2_" \
33       -i `egrep -rl "(env python|bin/python)" .`
37 # vim:set ts=2 sw=2 et: