blob: c88cc2fb7dac985da3d1d40dec3a32d56d07f2ef (
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
|
# Maintainer: Chance Chen <ufbycd@163.com>
pkgname=nueclipse
_pkgname=NuEclipse
pkgver=1.02.027
pkgrel=1
pkgdesc="Ecipse base C/C++ IDE for Nuvoton Microcontroller"
arch=('x86_64')
url="https://www.nuvoton.com"
license=('custom')
groups=()
depends=("gtk2" "arm-none-eabi-gcc" "arm-none-eabi-newlib" "arm-none-eabi-gdb")
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=(!strip)
source=("https://www.nuvoton.com/export/resource-files/en-us--${_pkgname}_V${pkgver}_Linux_Setup.tar.gz")
sha256sums=('3cb857a1a5efac10cc8a463ce4a9a7e2dcb63fbaba42d2682bb6ab115bbeeb2d')
package() {
cd "$srcdir/${_pkgname}_V${pkgver}_Linux_Setup"
mkdir -p "$pkgdir/usr/share/$pkgname"
cp -afr eclipse/* "$pkgdir/usr/share/$pkgname"
#tar -xf "Others/${GCC_VERSION}-linux.tar.bz2" -C "$pkgdir/usr/share/$pkgname"
install -Dm644 Others/10-openocd-nulink.rules "$pkgdir/etc/udev/rules.d/10-openocd-nulink.rules"
install -Dm644 UserManual/UM_NuEclipse_EN.pdf "$pkgdir/usr/share/doc/$pkgname/UM_NuEclipse_EN.pdf"
install -Dm644 UserManual/UM_NuEclipse_SC.pdf "$pkgdir/usr/share/doc/$pkgname/UM_NuEclipse_SC.pdf"
install -D /dev/stdin "$pkgdir/usr/bin/$pkgname" <<END
#!/bin/bash
export ECLIPSE_HOME=/usr/share/$pkgname
exec \$ECLIPSE_HOME/eclipse "\$@"
END
install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/$pkgname.desktop" <<END
[Desktop Entry]
Name=NuEclipse
Comment=Embedded C/C++ IDE for Nuvoton Microcontroller
Icon=/usr/share/$pkgname/icon.xpm
Exec=/usr/share/$pkgname/eclipse
Terminal=false
Type=Application
Categories=Development;IDE;Java;
StartupNotify=true
END
}
# makepkg --printsrcinfo > .SRCINFO
|