1 # Contributor: Alexander Kazarin <boiler@co.ru>
3 pkgname='perl-firmata-git'
6 pkgdesc="Perl implementation of the Firmata client"
9 url='https://github.com/amimoto/perl-firmata/'
10 depends=('perl' 'perl-device-serialport')
12 _gitroot=("https://github.com/amimoto/perl-firmata.git")
13 _gitname=("perl-firmata")
18 if [ -d ${srcdir}/${_gitname} ] ; then
19 msg "Git checkout: Updating existing tree"
20 cd ${_gitname} && git pull origin
21 msg "Git checkout: Tree has been updated"
23 msg "Git checkout: Retrieving sources"
26 msg "Checkout completed"
30 mkdir -p ${pkgdir}/usr/lib/perl5/site_perl
31 cp -r ${srcdir}/${_gitname}/lib/* ${pkgdir}/usr/lib/perl5/site_perl/
32 mkdir -p ${pkgdir}/usr/share/${_gitname}
33 cp -r ${srcdir}/${_gitname}/examples ${pkgdir}/usr/share/${_gitname}/
34 cp -r ${srcdir}/${_gitname}/presentation ${pkgdir}/usr/share/${_gitname}/