updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / cinnamon-extensions-git / PKGBUILD
blobf2001b05f16d6b2e24dfc0ce117f9457793435f4
1 # Maintainer: crazyelf5
3 pkgname=cinnamon-extensions-git
4 pkgver=20120110
5 pkgrel=1
6 pkgdesc="Cinnamon extensions"
7 arch=('any')
8 url="https://github.com/linuxmint/cinnamon-extensions"
9 license=('GPL')
10 depends=('cinnamon' 'gtk3' 'dconf')
11 makedepends=('git')
12 optdepends=('cinnamon-settings-git: Enable extensions the easy way [AUR]')
13 install=$pkgname.install
15 _gitroot=git://github.com/linuxmint/cinnamon-extensions.git
16 _gitname=cinnamon-extensions
18 build() {
19   msg "Connecting to GIT server...."
21   if [[ -d "$_gitname" ]]; then
22     cd "$_gitname" && git pull origin
23     msg "The local files are updated."
24   else
25     git clone "$_gitroot" "$_gitname"
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting build..."
31   find . -type d -name "usr" -exec cp -rf '{}' "$pkgdir/" \;
32   
33   sed -i 's|/usr/bin/env python|/usr/bin/env python2|' "$pkgdir/usr/bin/cinnamon-weather-extension-config"
36 # vim:set ts=2 sw=2 et: