1 # Maintainer: Rémy Oudompheng <remy@archlinux.org>
7 pkgdesc="Go library for DNS protocol"
9 url="http://github.com/miekg/godns"
14 _gitroot="git://github.com/miekg/godns.git"
18 msg 'Connecting to GIT server...'
20 if [[ -d $_gitname ]]; then
21 ( cd $_gitname && git pull origin )
22 msg 'The local files are updated.'
27 msg 'GIT checkout done or server timeout'
28 msg 'Starting make...'
30 rm -rf $_gitname-build
31 git clone $_gitname{,-build}
34 source /etc/profile.d/go.sh
39 cd ${srcdir}/${_gitname}-build
40 source /etc/profile.d/go.sh
41 mkdir -p ${pkgdir}/${GOROOT}/src/pkg/${_goname}
43 cp -Rv ${srcdir}/${_gitname}/* ${pkgdir}/${GOROOT}/src/pkg/${_goname}
45 cp -v ${GOROOT}/src/Make.* ${pkgdir}/${GOROOT}/src/
46 GOROOT=${pkgdir}/${GOROOT} gomake install
47 rm -f ${pkgdir}/${GOROOT}/src/Make.*
50 # vim: set ts=2 sw=2 et: