1 # Contributor: Linus Sjögren <thelinx@unreliablepollution.net>
5 pkgdesc="cross platform color printing for the command line"
7 url="https://github.com/mnmlstc/hue"
9 makedepends=('git' 'cmake>=2.8')
11 _gitroot="git://github.com/mnmlstc/hue.git"
16 msg "Connecting to GIT server...."
18 if [ -d $_gitname ] ; then
19 cd $_gitname && git pull origin
20 msg "The local files are updated."
22 git clone $_gitroot $_gitname
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"
37 cmake -DCMAKE_INSTALL_PREFIX=$pkgdir/usr ..
39 install -Dm0664 ../License.md \
40 $pkgdir/usr/share/licenses/$pkgname/License.md