updated on Wed Jan 25 12:16:47 UTC 2012
[aur-mirror.git] / cinnamon-themes-git / PKGBUILD
blobf281568d4a07ad19d8668adedab71694f276e9ec
1 # Maintainer: crazyelf5
3 pkgname=cinnamon-themes-git
4 pkgver=20120125
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 optdepends=('cinnamon-settings-git: Change the themes from GUI [AUR]')
13 conflicts=('cinnamon-theme-eleganse')
15 _gitroot=git://github.com/linuxmint/cinnamon-themes.git
16 _gitname=cinnamon-themes
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"
31 package() {
32   install -dm755 "$pkgdir/usr/share/themes"
33   cd "$srcdir/cinnamon-themes"
34   find ./*/ -maxdepth 0 -type d -exec cp -r '{}' "$pkgdir/usr/share/themes" \;
37 # vim:set ts=2 sw=2 et: