updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / meego-cursor-theme-git / PKGBUILD
blob1827a9caf1e16b68e40496d1d4d1ffaa670ea77c
1 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 pkgname=meego-cursor-theme-git
4 pkgver=20110218
5 pkgrel=1
6 pkgdesc="MeeGo X cursors icon theme"
7 arch=('i686' 'x86_64')
8 url="http://meego.com"
9 license=('GPL')
10 groups=('meego')
11 depends=()
12 makedepends=('git' 'xorg-xcursorgen')
13 provides=('meego-cursor-theme')
14 conflicts=('meego-cursor-theme')
16 _gitroot="git://gitorious.org/meego-netbook-ux/meego-cursor-theme.git"
17 _gitname="meego-cursor-theme"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   cd pngs
38   ./make.sh
41 package() {
42   cd "$srcdir/$_gitname-build"
44   install -d ${pkgdir}/usr/share/icons/meego
45   cp -r xcursors ${pkgdir}/usr/share/icons/meego/cursors