1 # Maintainer: Eduardo Sánchez Muñoz <eduardosanchezmunoz@gmail.com>
6 pkgdesc="A program to convert a file to a C array."
8 url="http://code.google.com/p/res2c/"
11 makedepends=('gcc' 'git' 'cmake')
18 _gitroot="https://code.google.com/p/res2c/"
24 msg "Connecting to GIT server..."
26 if [ -d $_gitname ]; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 mkdir -p "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
40 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/$_gitname/res2c"
45 cd "$srcdir/$_gitname-build"
46 make DESTDIR="$pkgdir" install