summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authortaotieren2021-05-10 20:37:56 +0800
committertaotieren2021-05-10 20:37:56 +0800
commit53718e4debab15f00ecfce6b0e6b94609d4c4f4b (patch)
tree655a39d72005e6c58aac3fefc7d1f04321fd9df9
parent0175bb9d672a0317de0a81e068ee83dfc138c73a (diff)
downloadaur-53718e4debab15f00ecfce6b0e6b94609d4c4f4b.tar.gz
Update PKGBUILD
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD19
2 files changed, 12 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 44b5021112a..0032186f5a6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,11 @@
pkgbase = nucleistudioide
pkgdesc = Nuclei Studio IDE 是基于 MCU Eclipse IDE 开发的一款针对芯来公司处理器核产品的集成开发环境工具,用于 RISC-V 开发继承了 Eclipse IDE 平台的各种优势。
pkgver = 202102
- pkgrel = 3
+ pkgrel = 4
url = https://www.nucleisys.com/download.php
arch = x86_64
license = unknow
- makedepends = xdg-user-dirs
- makedepends = imagemagick
- depends = java-runtime
depends = jlink-software-and-documentation
- depends = ncurses5-compat-libs
- depends = glibc
- depends = libusb
- depends = openocd
options = !strip
source = https://www.nucleisys.com/upload/files/nucleistudio/NucleiStudio_IDE_202102-lin64.tgz
sha256sums = a005671317725f33e177d2ba9272cd77e0c04ef3d28c7cf8de4565c3f83b651e
diff --git a/PKGBUILD b/PKGBUILD
index f7de3540c90..64957f826da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,11 +2,11 @@
pkgname=nucleistudioide
pkgver=202102
-pkgrel=3
+pkgrel=4
pkgdesc="Nuclei Studio IDE 是基于 MCU Eclipse IDE 开发的一款针对芯来公司处理器核产品的集成开发环境工具,用于 RISC-V 开发继承了 Eclipse IDE 平台的各种优势。"
arch=("x86_64")
-makedepends=('xdg-user-dirs' 'imagemagick')
-depends=('java-runtime' 'jlink-software-and-documentation' 'ncurses5-compat-libs' 'glibc' 'libusb' 'openocd')
+makedepends=()
+depends=('jlink-software-and-documentation')
optdepends=()
conflicts=()
url="https://www.nucleisys.com/download.php"
@@ -25,25 +25,28 @@ package() {
mv "${srcdir}/NucleiStudio_IDE_${pkgver}/NucleiStudio" "${pkgdir}/opt/nuclei"
msg2 'Instalation of binary file'
- install -Dm755 /dev/stdin "${pkgdir}/usr/bin/${pkgname}" <<END
+ install -Dm755 /dev/stdin "${pkgdir}/usr/bin/${pkgname}" <<EOF
#!/bin/sh
/opt/nuclei/NucleiStudio/NucleiStudio "\$@"
-END
+EOF
+ install -dm755 "${pkgdir}/etc/udev/rules.d/"
+ ln -sf "/opt/nuclei/NucleiStudio/toolchain/openocd/contrib/60-openocd.rules" "${pkgdir}/etc/udev/rules.d/99-openocd.rules"
+
msg2 'Installing desktop shortcut'
- install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/${pkgname}.desktop" <<END
+ install -Dm644 /dev/stdin "$pkgdir/usr/share/applications/${pkgname}.desktop" <<EOF
[Desktop Entry]
Name=NucleiStudioIDE
Comment=NucleiStudioIDE
GenericName=NucleiStudioIDE
-Exec=env GDK_BACKEND=x11 NucleiStudio %F
+Exec=env GDK_BACKEND=x11 nucleistudioide %F
Icon=
Path=/opt/nuclei/NucleiStudio/
Terminal=false
StartupNotify=true
Type=Application
Categories=Development
-END
+EOF
}