makedeb


eclipse-platform 4.29-6


A minimal installation suitable for complete per-user customization with the built-in Eclipse package manager

Click here to go back to the commit logs for eclipse-platform.

Commit:


Hash: 9e40db67187be85a338dde14b8c9da4f580eed3e

Message: Changes to be committed: modified: .SRCINFO modified: PKGBUILD modified: eclipse.sh new file: postinst new file: prerm

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 18c40d8..7a2e74d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
 pkgname = eclipse-platform
 pkgbase = eclipse-platform
 pkgdesc = A minimal installation suitable for complete per-user customization with the built-in Eclipse package manager
-pkgrel = 1
+pkgrel = 2
 pkgver = 4.29
 url = https://www.eclipse.org
 arch = x86_64
@@ -12,23 +12,39 @@ conflicts = eclipse-common
 depends = java11-runtime
 depends = unzip
 license = EPL
+makedepends = coreutils
+makedepends = findutils
 options = !strip
 provides = eclipse=4.29
+makedepends = coreutils
+makedepends = findutils
 source_amd64 = https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/I20230622-1800/eclipse-platform-I20230622-1800-linux-gtk-x86_64.tar.gz
 source_amd64 = eclipse.sh
 source_amd64 = eclipse.desktop
+source_amd64 = postinst
+source_amd64 = prerm
 source_arm64 = https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/I20230622-1800/eclipse-platform-I20230622-1800-linux-gtk-aarch64.tar.gz
 source_arm64 = eclipse.sh
 source_arm64 = eclipse.desktop
+source_arm64 = postinst
+source_arm64 = prerm
 source_ppc64el = https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/I20230622-1800/eclipse-platform-I20230622-1800-linux-gtk-ppc64le.tar.gz
 source_ppc64el = eclipse.sh
 source_ppc64el = eclipse.desktop
-sha512sums_amd64 = SKIP
-sha512sums_amd64 = 727235c8372916fa52ef98b91eee7d1f6ba2582969a1346bdf127c12c4115f49ffcdd4bcf2a5e2c5f11e3533384e5ae7c2e2a65e4f746e6ef7c183df570ee51f
-sha512sums_amd64 = b75e2fd8d5fccfc57d75d6c717cd10b325bd4d0813de9dddefa1719d6fa617428154d0f0f70032ae29d8ec31d181a4601a8457ad29c61201922a05f97428d266
-sha512sums_arm64 = SKIP
-sha512sums_arm64 = 727235c8372916fa52ef98b91eee7d1f6ba2582969a1346bdf127c12c4115f49ffcdd4bcf2a5e2c5f11e3533384e5ae7c2e2a65e4f746e6ef7c183df570ee51f
-sha512sums_arm64 = b75e2fd8d5fccfc57d75d6c717cd10b325bd4d0813de9dddefa1719d6fa617428154d0f0f70032ae29d8ec31d181a4601a8457ad29c61201922a05f97428d266
-sha512sums_ppc64el = SKIP
-sha512sums_ppc64el = 727235c8372916fa52ef98b91eee7d1f6ba2582969a1346bdf127c12c4115f49ffcdd4bcf2a5e2c5f11e3533384e5ae7c2e2a65e4f746e6ef7c183df570ee51f
-sha512sums_ppc64el = b75e2fd8d5fccfc57d75d6c717cd10b325bd4d0813de9dddefa1719d6fa617428154d0f0f70032ae29d8ec31d181a4601a8457ad29c61201922a05f97428d266
+source_ppc64el = postinst
+source_ppc64el = prerm
+sha256sums_amd64 = SKIP
+sha256sums_amd64 = 3f35d846f21ff8e7557981a9f9fe65d7a7e5f7d8b4885a32378a2d1e88e7ceaf
+sha256sums_amd64 = c30c3da180ab236b7d066c29edc02722cc8bf1cefb7ec180bd8a64d52078e796
+sha256sums_amd64 = 0b35b169a100d605c3191a00b13f49d00b30627b102a610e13a16ff1685e4b07
+sha256sums_amd64 = 30073c6a19db2edb4723fc27a5f498dca19954a34e90c5f13700a47479c38916
+sha256sums_arm64 = SKIP
+sha256sums_arm64 = 3f35d846f21ff8e7557981a9f9fe65d7a7e5f7d8b4885a32378a2d1e88e7ceaf
+sha256sums_arm64 = c30c3da180ab236b7d066c29edc02722cc8bf1cefb7ec180bd8a64d52078e796
+sha256sums_arm64 = 0b35b169a100d605c3191a00b13f49d00b30627b102a610e13a16ff1685e4b07
+sha256sums_arm64 = 30073c6a19db2edb4723fc27a5f498dca19954a34e90c5f13700a47479c38916
+sha256sums_ppc64el = SKIP
+sha256sums_ppc64el = 3f35d846f21ff8e7557981a9f9fe65d7a7e5f7d8b4885a32378a2d1e88e7ceaf
+sha256sums_ppc64el = c30c3da180ab236b7d066c29edc02722cc8bf1cefb7ec180bd8a64d52078e796
+sha256sums_ppc64el = 0b35b169a100d605c3191a00b13f49d00b30627b102a610e13a16ff1685e4b07
+sha256sums_ppc64el = 30073c6a19db2edb4723fc27a5f498dca19954a34e90c5f13700a47479c38916
diff --git a/PKGBUILD b/PKGBUILD
index 669ba77..2e746f5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,12 +3,13 @@
 pkgname=eclipse-platform
 pkgver=4.29
 _pkgbuild='I20230622-1800'
-pkgrel=1
+pkgrel=2
 pkgdesc="A minimal installation suitable for complete per-user customization with the built-in Eclipse package manager"
 url="https://www.eclipse.org"
 arch=("amd64" "arm64" "ppc64el")
 license=("EPL")
 depends=("java11-runtime" "unzip")
+makedepends=('coreutils' 'findutils')
 optdepends=()
 conflicts=("eclipse-common")
 provides=("eclipse=$pkgver")
@@ -18,27 +19,40 @@ declare -A arches=([amd64]=x86_64 [arm64]=aarch64 [ppc64el]=ppc64le )
 
 
 for i in "${!arches[@]}"; do
-    eval "sha512sums_${i}=(
-        'SKIP'
-        '727235c8372916fa52ef98b91eee7d1f6ba2582969a1346bdf127c12c4115f49ffcdd4bcf2a5e2c5f11e3533384e5ae7c2e2a65e4f746e6ef7c183df570ee51f'
-        'b75e2fd8d5fccfc57d75d6c717cd10b325bd4d0813de9dddefa1719d6fa617428154d0f0f70032ae29d8ec31d181a4601a8457ad29c61201922a05f97428d266'
+    eval "sha256sums_${i}=(
+'SKIP'
+'3f35d846f21ff8e7557981a9f9fe65d7a7e5f7d8b4885a32378a2d1e88e7ceaf'  
+'c30c3da180ab236b7d066c29edc02722cc8bf1cefb7ec180bd8a64d52078e796'  
+'0b35b169a100d605c3191a00b13f49d00b30627b102a610e13a16ff1685e4b07'  
+'30073c6a19db2edb4723fc27a5f498dca19954a34e90c5f13700a47479c38916'  
     )"
     arch="${arches[${i}]}"
     eval "source_$i=(
-        'https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/${_pkgbuild}/eclipse-platform-${_pkgbuild}-linux-gtk-${arch}.tar.gz'
-        'eclipse.sh' 
-        'eclipse.desktop'
+'https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/${_pkgbuild}/eclipse-platform-${_pkgbuild}-linux-gtk-${arch}.tar.gz'
+'eclipse.sh'
+'eclipse.desktop'
+'postinst'
+'prerm'
     )"
 done
 
 package() {
-  install -d ${pkgdir}/usr/bin ${pkgdir}/usr/lib ${pkgdir}/usr/share/applications
-  install -m755 "${srcdir}/eclipse.sh" "${pkgdir}/usr/bin/eclipse"
+  install -Dm755 "${srcdir}/postinst"   "${pkgdir}/DEBIAN/postinst"
+  install -Dm755 "${srcdir}/prerm"      "${pkgdir}/DEBIAN/prerm"
+  install -d "${pkgdir}/usr/bin" "${pkgdir}/usr/lib" "${pkgdir}/usr/share/applications"
+  install -m754 "${srcdir}/eclipse.sh" "${pkgdir}/usr/bin/eclipse"
   install -Dm644 "${srcdir}/eclipse.desktop" "${pkgdir}/usr/share/applications/"
 
   for _i in 16 32 48 256; do
     install -Dm644 "${srcdir}"/eclipse/plugins/org.eclipse.platform_*/eclipse${_i}.png "$pkgdir/usr/share/icons/hicolor/${_i}x${_i}/apps/eclipse.png"
   done
 
-  mv "${srcdir}/eclipse" "${pkgdir}/usr/lib/"
+  mv "${srcdir}/eclipse" "${pkgdir}/usr/share/"
+
+
+  cd "${pkgdir}/usr"   
+  chmod 754 bin/eclipse
+  cd share/
+  chmod -R 770 eclipse
+  chmod -R g+s,u-s eclipse
 }
diff --git a/eclipse.sh b/eclipse.sh
index f012385..1846fe3 100644
--- a/eclipse.sh
+++ b/eclipse.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
 
 export WAYLAND_DISPLAY=''
-export ECLIPSE_HOME=/usr/lib/eclipse
+export ECLIPSE_HOME=/usr/share/eclipse
 exec ${ECLIPSE_HOME}/eclipse "$@"
diff --git a/postinst b/postinst
new file mode 100644
index 0000000..a30e0be
--- /dev/null
+++ b/postinst
@@ -0,0 +1,4 @@
+#!/bin/sh
+groupadd eclipsedev
+chgrp eclipsedev /usr/share/eclipse -R
+chgrp eclipsedev /usr/bin/eclipse
diff --git a/prerm b/prerm
new file mode 100644
index 0000000..1f1bd75
--- /dev/null
+++ b/prerm
@@ -0,0 +1,2 @@
+#!/bin/sh
+groupdel eclipsedev