updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / hue-git / PKGBUILD
blobc8d7ce22e468f73cb346e56986c0e3b69d2aea5e
1 # Contributor: Linus Sjögren <thelinx@unreliablepollution.net>
2 pkgname=hue-git
3 pkgver=20101120
4 pkgrel=1
5 pkgdesc="cross platform color printing for the command line"
6 arch="any"
7 url="https://github.com/mnmlstc/hue"
8 license=('BSD')
9 makedepends=('git' 'cmake>=2.8')
11 _gitroot="git://github.com/mnmlstc/hue.git"
12 _gitname="hue"
14 build() {
15   cd "$srcdir"
16   msg "Connecting to GIT server...."
18   if [ -d $_gitname ] ; then
19     cd $_gitname && git pull origin
20     msg "The local files are updated."
21   else
22     git clone $_gitroot $_gitname
23   fi
25   msg "GIT checkout done or server timeout"
26   msg "Starting make..."
28   rm -rf "$srcdir/$_gitname-build"
29   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
30   cd "$srcdir/$_gitname-build"
32   #
33   # BUILD HERE
34   #
36         mkdir build; cd build
37         cmake -DCMAKE_INSTALL_PREFIX=$pkgdir/usr ..
38         make install
39         install -Dm0664 ../License.md \
40                 $pkgdir/usr/share/licenses/$pkgname/License.md