updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nyancat / PKGBUILD
blobb02cba721f9ffbe5e6a8ca03e0c50a7ac71e6a67
1 pkgname=nyancat
2 pkgver=20111225
3 pkgrel=1
4 pkgdesc="Nyancat rendered with various bits of ANSI"
5 arch=('i686' 'x86_64')
6 url="http://miku.acm.uiuc.edu/"
7 license=('NCSA')
8 depends=()
9 makedepends=()
10 source=()
11 md5sums=()
13 _gitroot='git://github.com/klange/nyancat.git'
14 _gitname='nyancat'
15 _buildir=${_gitname}-build
17 build() {
18         cd ${srcdir}
20         msg 'Connecting to GIT server...'
21         if [ -d ${_gitname} ]; then
22                 cd ${_gitname} && git pull origin
23                 cd ..
24         else
25                 git clone ${_gitroot}
26         fi
28         msg 'GIT checkout done or server timeout.'
30         if [ -d ${_buildir} ]; then
31                 msg 'Cleaning previous build...'
32                 rm -rf ${_buildir}
33         fi
35         git clone ${_gitname} ${_buildir}
36         cd ${_buildir}
38         msg 'Starting make...'
40         make || return 1
42         msg 'Installing file(s)...'
44         install -Dm755 src/nyancat ${pkgdir}/usr/bin/nyancat
46         rm -rf ${srcdir}/${_buildir}