blob: fd4a0eb2016e1e324e3245f4181e772b548e2cd5 (
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
|
# Maintainer : Aurélien Desbrières <aurelien@hackers.camp>
# 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.0
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')
makedepends=('icoutils')
conflicts=('arduino-toolchain')
install="arduino.install"
source=('arduino.desktop'
'arduino.xml')
source_i686+=("http://arduino.cc/download_handler.php?f=/arduino-${pkgver}-linux32.tar.xz")
source_x86_64+=("http://arduino.cc/download_handler.php?f=/arduino-${pkgver}-linux64.tar.xz")
build() {
cd "arduino-${pkgver}"
icotool -x -o .. lib/arduino_icon.ico
}
package() {
cd "arduino-${pkgver}"
mkdir -p "${pkgdir}/usr/bin"
mkdir -p "${pkgdir}/usr/share/"{doc,applications,mime/packages}
# copy the whole SDK to /usr/share/arduino/
cp -a . "${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's broken dependency on libtinfo.so.5
ln -s /usr/lib/libncurses.so.5 "${pkgdir}/usr/share/arduino/hardware/tools/avr/lib/libtinfo.so.5"
# desktop icon
for size in 16 32 48 256; do
install -Dm644 ../arduino_icon_*_${size}x${size}x32.png \
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/arduino.png"
done
# desktop and mimetype files
install -m644 "${srcdir}/arduino.desktop" "${pkgdir}/usr/share/applications/"
install -m644 "${srcdir}/arduino.xml" "${pkgdir}/usr/share/mime/packages/"
}
|