summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD53
1 files changed, 53 insertions, 0 deletions
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
+}