5 pkgdesc="MPD API wrapper for Go (git version)"
6 url="https://github.com/jteeuwen/go-pkg-mpd"
11 arch=('i686' 'x86_64')
12 _gitroot="git://github.com/jteeuwen/go-pkg-mpd.git"
18 if [ -d $_gitname ] ; then
19 cd $_gitname && git pull origin
20 msg "The local files are updated."
27 rm -rf $_gitname-build
28 git clone $_gitname{,-build}
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
35 source /etc/profile.d/go.sh
40 cd ${srcdir}/${_gitname}-build
41 source /etc/profile.d/go.sh
42 mkdir -p "${pkgdir}/${GOROOT}/src/pkg/${_goname}"
44 cp -Rv ${srcdir}/${_gitname}/* "${pkgdir}/${GOROOT}/src/pkg/${_goname}"
46 install -D "${srcdir}/${_gitname}/LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
48 cp -v ${GOROOT}/src/Make.* "${pkgdir}/${GOROOT}/src/"
49 GOROOT=${pkgdir}/${GOROOT} gomake install
50 rm -f ${pkgdir}/${GOROOT}/src/Make.*