diff options
author | ShiSheng Chen | 2021-01-09 15:50:58 +0800 |
---|---|---|
committer | ShiSheng Chen | 2021-01-09 15:50:58 +0800 |
commit | b4a18cd4be8802b6a8641f30201386d5cc324e88 (patch) | |
tree | 208f5669f8197df01483eb11d2b8f2d40ef156c9 | |
download | aur-b4a18cd4be8802b6a8641f30201386d5cc324e88.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 58 |
2 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..921852a2dfa0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = nueclipse + pkgdesc = Ecipse base C/C++ IDE for Nuvoton Microcontroller + pkgver = 1.01.017 + pkgrel = 1 + url = www.nuvoton.com + arch = x86_64 + license = custom + depends = java-runtime + depends = arm-none-eabi-gcc + depends = arm-none-eabi-newlib + depends = arm-none-eabi-gdb + source = https://www.nuvoton.com.cn/export/resource-files/NuEclipse_V1.01.017_Linux_Setup.tar.gz + md5sums = 34746445962d68f6e622099b61772268 + +pkgname = nueclipse + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7cc13d1cdaca --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ + +# Maintainer: chenss <ufbycd@163.com> + +pkgname=nueclipse +_pkgname=NuEclipse +pkgver=1.01.017 +pkgrel=1 +pkgdesc="Ecipse base C/C++ IDE for Nuvoton Microcontroller" +arch=('x86_64') +url="www.nuvoton.com" +license=('custom') +groups=() +depends=("java-runtime" "arm-none-eabi-gcc" "arm-none-eabi-newlib" "arm-none-eabi-gdb") +makedepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +source=("https://www.nuvoton.com.cn/export/resource-files/${_pkgname}_V${pkgver}_Linux_Setup.tar.gz") +#https://www.nuvoton.com.cn/export/resource-files/NuEclipse_V1.01.017_Linux_Setup.tar.gz +md5sums=('34746445962d68f6e622099b61772268') +#GCC_VERSION=gcc-arm-none-eabi-6-2017-q1-update + +prepare() { + cd "$srcdir/${_pkgname}_V${pkgver}_Linux_Setup" + sed -i -e '2c /usr/bin' eclipse/eclipse.ini + rm -rf eclipse/java-* +} + +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 +} |