updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / cinnamon-themes-git / PKGBUILD
blob921c044c13e30930024532c4e2fbab3a803c8e35
1 # Maintainer: crazyelf5
3 pkgname=cinnamon-themes-git
4 pkgver=20120110
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   cd "$srcdir/cinnamon-themes"
32   find ./*/ -maxdepth 0 -type d -exec cp -r '{}' "$pkgdir/usr/share/themes" \;
35 # vim:set ts=2 sw=2 et: