1 # Maintainer: Serge Ziryukin <ftrvxmtrx@gmail.com>
6 pkgdesc="XML parser for Erlang"
8 url="https://github.com/dweldon/erlsom"
11 makedepends=('make' 'git')
15 _gitroot="git://github.com/willemdj/erlsom.git"
21 msg "Connecting to Git server..."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin && cd ..
25 msg "The local files are updated."
27 git clone $_gitroot $_gitname
30 msg "Git checkout done or server timeout."
31 msg "Starting make..."
33 rm -rf $_gitname-build && cp -r $_gitname $_gitname-build && cd $_gitname-build
36 ./configure --prefix=/usr || return 1
41 cd "$srcdir/$_gitname-build"
43 make DESTDIR="$pkgdir/" install