blob: 1db27ff73383f7137797af58e5e429f349a63416 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Christopher Loen <christopherloen at gmail dot com>
# Contributor: Peter Reschenhofer <peter.reschenhofer@gmail.com>
# Contributor: Niels Martignène <niels.martignene@gmail.com>
# Contributor: PyroPeter <googlemail.com@abi1789>
# Contributor: darkapex <me@jailuthra.in>
# Contributor: tty0 <vt.tty0[d0t]gmail.com>
pkgname='arduino'
epoch=1
pkgver='1.6.9'
pkgrel=1
pkgdesc="Arduino prototyping platform SDK"
arch=('i686' 'x86_64')
url="http://arduino.cc/en/Main/Software"
options=(!strip staticlibs)
license=('GPL' 'LGPL')
depends=('gtk2' 'libusb-compat' 'java-runtime' 'desktop-file-utils' 'giflib' 'avrdude')
makedepends=('icoutils')
install="arduino.install"
source=('arduino.desktop'
'arduino.xml')
source_i686+=("http://downloads.arduino.cc/arduino-${pkgver}-linux32.tar.xz")
source_x86_64+=("http://downloads.arduino.cc/arduino-${pkgver}-linux64.tar.xz")
sha256sums=('ee29f80cc63cf3a21e844372721686372c2ca4b36e35430350d72e0b788a0ae2'
'473b82156505e9bd903e4d8484e8d183f2e3bf3c1f7e29940b815929ae597b68')
sha256sums_i686=('b164905f281ad34ca4ca0d58b2b4c0d67d8125dbcd43ad73d536effd02ef8e56')
sha256sums_x86_64=('8da3920fe9e168bcf3fe31fef9e1f8454ba5366e7f2e297cf264485e59e8a1a0')
build() {
cd "arduino-${pkgver}"
icotool -x -o .. lib/arduino_icon.ico
}
package() {
cd "arduino-${pkgver}"
install -dm755 "${pkgdir}/usr/bin"
install -dm755 "${pkgdir}/usr/share/"{doc,applications,mime/packages}
# copy the whole SDK to /usr/share/arduino/
cp -rf . "${pkgdir}/usr/share/arduino/"
# at least support the FHS a little bit
ln -s /usr/share/arduino/arduino "${pkgdir}/usr/bin/arduino"
ln -s /usr/share/arduino/reference "${pkgdir}/usr/share/doc/arduino"
# fix avrdude
rm -f "${pkgdir}/usr/share/arduino/hardware/tools/avr/bin/avrdude"{,_bin}
ln -s /usr/bin/avrdude "${pkgdir}/usr/share/arduino/hardware/tools/avr/bin/avrdude"
# desktop icon
install -dm755 "${pkgdir}/usr/share/icons"
for size in 32 48 256; do
mv "${pkgdir}/usr/share/arduino/lib/icons/${size}x${size}/" \
"${pkgdir}/usr/share/icons/${size}x${size}"
done
# desktop and mimetype files
install -m644 "${srcdir}/arduino.desktop" "${pkgdir}/usr/share/applications/"
install -m644 "${srcdir}/arduino.xml" "${pkgdir}/usr/share/mime/packages/"
}
|