Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkgname=arduino
- pkgver=0018
- pkgrel=2
- pkgdesc="The Arduino IDE"
- arch=('i686' 'x86_64')
- url="http://www.arduino.cc/"
- license=('GPL')
- depends=('avr-libc' 'java-runtime' 'libusb' 'bash')
- [ "$CARCH" = i686 ] && source=(http://arduino.googlecode.com/files/${pkgname}-${pkgver}.tgz)
- [ "$CARCH" = x86_64 ] && source=(http://arduino.googlecode.com/files/${pkgname}-${pkgver}-64-${pkgrel}.tgz)
- build() {
- install -d ${pkgdir}/usr/share
- cp -r ${srcdir}/${pkgname}-${pkgver} ${pkgdir}/usr/share/arduino
- find ${pkgdir}/usr/share/arduino -type d -exec chmod 755 '{}' \;
- find ${pkgdir}/usr/share/arduino -type f -exec chmod 644 '{}' \;
- chmod 755 ${pkgdir}/usr/share/arduino/arduino
- #fix avrdude permission
- chmod 755 ${pkgdir}/usr/share/arduino/hardware/tools/avrdude
- #Generate script to run arduino
- install -d ${pkgdir}/usr/bin
- cat <<EOF > ${pkgdir}/usr/bin/arduino
- #!/bin/bash
- cd /usr/share/arduino
- ./arduino
- EOF
- chmod 755 ${pkgdir}/usr/bin/arduino
- }
- md5sums=('86e8719cfc5159136e24bfe9046c7a33')
- md5sums=('8815b60bf03e5985ed17f0b4b70dad4c')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement