updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / vstruct-git / PKGBUILD
blob146993554a70e41ff5acc66e74ef751877ea38d6
1 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
3 pkgname=vstruct-git
4 pkgver=20090729
5 pkgrel=1
6 pkgdesc="A Lua library for packing and unpacking binary data."
7 arch=('i686' 'x86_64')
8 url="http://www.funkyhorror.net/toxicfrog/projects/vstruct/"
9 license=('MIT')
10 depends=('lua')
11 makedepends=('git')
12 provides=('vstruct')
14 _gitroot="git://github.com/ToxicFrog/vstruct.git"
15 _gitname="vstruct"
17 build() {
18         cd ${srcdir}
19         msg "Connecting to GIT server...."
21         if [ -d ${_gitname} ] ; then
22                 cd ${_gitname} && git pull origin
23                 msg "The local files are updated."
24         else
25                 git clone ${_gitroot}
26         fi
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
38