updated on Mon Jan 9 20:07:11 UTC 2012
[aur-mirror.git] / cinnamon-themes-git / PKGBUILD
blobe2ae5d08c25cb39b6465025b3beca6ddf08bda52
1 # Maintainer: crazyelf5
3 pkgname=cinnamon-themes-git
4 pkgver=20120109
5 pkgrel=1
6 pkgdesc="A collection of themes for Cinnamon"
7 arch=('any')
8 url="https://github.com/linuxmint/cinnamon-themes"
9 license=('GPL')
10 depends=('cinnamon')
11 makedepends=('git')
12 conflicts=('cinnamon-theme-eleganse')
14 _gitroot="git://github.com/linuxmint/cinnamon-themes.git"
15 _gitname="cinnamon-themes"
17 build() {
18   msg "Connecting to GIT server...."
20   if [[ -d "$_gitname" ]]; then
21     cd "$_gitname" && git pull origin
22     msg "The local files are updated."
23   else
24     git clone "$_gitroot" "$_gitname"
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting build..."
30   install -dm755 "$pkgdir/usr/share/themes"
31   find ./*/ -maxdepth 0 -type d -exec cp -r '{}' "$pkgdir/usr/share/themes" \;
34 # vim:set ts=2 sw=2 et: