1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
6 pkgdesc="A Lua library for packing and unpacking binary data."
8 url="http://www.funkyhorror.net/toxicfrog/projects/vstruct/"
14 _gitroot="git://github.com/ToxicFrog/vstruct.git"
19 msg "Connecting to GIT server...."
21 if [ -d ${_gitname} ] ; then
22 cd ${_gitname} && git pull origin
23 msg "The local files are updated."
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf ${srcdir}/${_gitname}-build
32 git clone ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
33 cd ${srcdir}/${_gitname}-build
35 mkdir -p ${pkgdir}/usr/lib/lua/5.1/${_gitname}
36 cp *.lua ${pkgdir}/usr/lib/lua/5.1/${_gitname}
37 install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE