summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorShiSheng Chen2021-01-09 16:09:48 +0800
committerShiSheng Chen2021-01-09 16:09:48 +0800
commit6443a6f1fe1dd301eb1f39afcf6b9a85d032048a (patch)
treeaf7face25fd100e1b967adc6cd9e6943e60a8146
downloadaur-eclipse-embedcpp.tar.gz
first commit
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD53
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..273fe30c688
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = eclipse-embedcpp
+ pkgdesc = Embedded C/C++ Development Environment(Chinese Mirror)
+ pkgver = 4.18
+ pkgrel = 2
+ url = www.eclipse.org
+ arch = x86_64
+ license = EPL
+ depends = java-runtime>=11
+ source = eclipse-embedcpp-4.18.tar.gz::https://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/2020-12/R/eclipse-embedcpp-2020-12-R-linux-gtk-x86_64.tar.gz
+ md5sums = fec1a3813975f5474d93fbd2901d4783
+
+pkgname = eclipse-embedcpp
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..3fe175a56e5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,53 @@
+
+# Maintainer: chenss <ufbycd@163.com>
+
+pkgname=eclipse-embedcpp
+pkgver=4.18
+_release=2020-12
+_src=$pkgname-$_release-R-linux-gtk-x86_64.tar.gz
+pkgrel=2
+pkgdesc="Embedded C/C++ Development Environment(Chinese Mirror)"
+arch=('x86_64')
+url="www.eclipse.org"
+license=('EPL')
+groups=()
+depends=("java-runtime>=11")
+makedepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+source=("$pkgname-$pkgver.tar.gz::https://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/$_release/R/$_src")
+#https://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/2020-12/R/eclipse-embedcpp-2020-12-R-linux-gtk-x86_64.tar.gz
+md5sums=('fec1a3813975f5474d93fbd2901d4783')
+
+prepare() {
+ # remove jre
+ sed -i -e '15c /usr/bin' eclipse/eclipse.ini
+ rm -rf eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.*
+}
+
+package() {
+ install -d "$pkgdir/usr/share/$pkgname"
+ cp -af eclipse/* "$pkgdir/usr/share/$pkgname"
+
+ 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=Eclipse-Embedcpp
+Comment=Embedded C/C++ Development Environment
+Icon=/usr/share/$pkgname/icon.xpm
+Exec=/usr/share/$pkgname/eclipse
+Terminal=false
+Type=Application
+Categories=Development;IDE;Java;
+StartupNotify=true
+END
+}