1 # Contributor: Rick W. Chen <stuffcorpse@archlinux.us>
6 pkgdesc="An open source replacement for msp430-gdbproxy, the MSP430 debugger"
8 url="http://xgoat.com/wp/2009/03/25/fetproxy-an-open-source-replacement-for-msp430-gdbproxy/"
10 depends=('gnet' 'libelf')
15 _gitroot="git://gitorious.org/fetproxy/mainline.git"
20 msg "Connecting to gitorious GIT server...."
22 if [ -d "${srcdir}/$_gitname" ] ; then
23 cd "$_gitname" && git fetch origin && cd "${srcdir}" || return 1
24 msg "The local files are updated."
26 git clone --mirror "$_gitroot" "$_gitname" || return 1
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 if [ -d "${srcdir}/$_gitname-build" ] ; then
33 rm -fr "${srcdir}/$_gitname-build"
36 git clone -l "$_gitname" "$_gitname-build" || return 1
37 cd "${srcdir}/$_gitname-build"
39 msg "Starting Make..."
40 LDFLAGS="-Wl,--hash-style=gnu"
42 install -Dm755 "${srcdir}/${_gitname}-build"/fetproxy "${pkgdir}"/usr/bin/fetproxy
44 rm -fr "${srcdir}/$_gitname-build"
46 # vim:set ts=2 sw=2 et: