makedeb
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.
Hash: e06decb184e281505b3d0638bcbda62f305b79ca
Message: Changes to be committed:
modified: .SRCINFO
modified: PKGBUILD
modified: postinst
diff --git a/.SRCINFO b/.SRCINFO
index 7a2e74d..3413108 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,10 @@
generated-by = makedeb
pkgname = eclipse-platform
+postinst = postinst
+prerm = prerm
pkgbase = eclipse-platform
pkgdesc = A minimal installation suitable for complete per-user customization with the built-in Eclipse package manager
-pkgrel = 2
+pkgrel = 5
pkgver = 4.29
url = https://www.eclipse.org
arch = x86_64
@@ -10,25 +12,26 @@ arch = arm64
arch = ppc64el
conflicts = eclipse-common
depends = java11-runtime
-depends = unzip
+depends = p!acl
license = EPL
makedepends = coreutils
makedepends = findutils
+noextract = eclipse.tar.gz
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.tar.gz::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.tar.gz::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.tar.gz::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
source_ppc64el = postinst
@@ -36,15 +39,15 @@ source_ppc64el = prerm
sha256sums_amd64 = SKIP
sha256sums_amd64 = 3f35d846f21ff8e7557981a9f9fe65d7a7e5f7d8b4885a32378a2d1e88e7ceaf
sha256sums_amd64 = c30c3da180ab236b7d066c29edc02722cc8bf1cefb7ec180bd8a64d52078e796
-sha256sums_amd64 = 0b35b169a100d605c3191a00b13f49d00b30627b102a610e13a16ff1685e4b07
+sha256sums_amd64 = 12b1cf1072bb734fc2d9fcbef8c8c05f2873bf4181a8d56dcb44f68371bb41cc
sha256sums_amd64 = 30073c6a19db2edb4723fc27a5f498dca19954a34e90c5f13700a47479c38916
sha256sums_arm64 = SKIP
sha256sums_arm64 = 3f35d846f21ff8e7557981a9f9fe65d7a7e5f7d8b4885a32378a2d1e88e7ceaf
sha256sums_arm64 = c30c3da180ab236b7d066c29edc02722cc8bf1cefb7ec180bd8a64d52078e796
-sha256sums_arm64 = 0b35b169a100d605c3191a00b13f49d00b30627b102a610e13a16ff1685e4b07
+sha256sums_arm64 = 12b1cf1072bb734fc2d9fcbef8c8c05f2873bf4181a8d56dcb44f68371bb41cc
sha256sums_arm64 = 30073c6a19db2edb4723fc27a5f498dca19954a34e90c5f13700a47479c38916
sha256sums_ppc64el = SKIP
sha256sums_ppc64el = 3f35d846f21ff8e7557981a9f9fe65d7a7e5f7d8b4885a32378a2d1e88e7ceaf
sha256sums_ppc64el = c30c3da180ab236b7d066c29edc02722cc8bf1cefb7ec180bd8a64d52078e796
-sha256sums_ppc64el = 0b35b169a100d605c3191a00b13f49d00b30627b102a610e13a16ff1685e4b07
+sha256sums_ppc64el = 12b1cf1072bb734fc2d9fcbef8c8c05f2873bf4181a8d56dcb44f68371bb41cc
sha256sums_ppc64el = 30073c6a19db2edb4723fc27a5f498dca19954a34e90c5f13700a47479c38916
diff --git a/PKGBUILD b/PKGBUILD
index 2e746f5..6e96896 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,19 +3,18 @@
pkgname=eclipse-platform
pkgver=4.29
_pkgbuild='I20230622-1800'
-pkgrel=2
+pkgrel=5
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")
+depends=("java11-runtime" "p!acl")
makedepends=('coreutils' 'findutils')
optdepends=()
conflicts=("eclipse-common")
provides=("eclipse=$pkgver")
options=(!strip)
-
-declare -A arches=([amd64]=x86_64 [arm64]=aarch64 [ppc64el]=ppc64le )
+declare -A arches=([amd64]=x86_64 [arm64]=aarch64 [ppc64el]=ppc64le)
for i in "${!arches[@]}"; do
@@ -23,12 +22,12 @@ for i in "${!arches[@]}"; do
'SKIP'
'3f35d846f21ff8e7557981a9f9fe65d7a7e5f7d8b4885a32378a2d1e88e7ceaf'
'c30c3da180ab236b7d066c29edc02722cc8bf1cefb7ec180bd8a64d52078e796'
-'0b35b169a100d605c3191a00b13f49d00b30627b102a610e13a16ff1685e4b07'
-'30073c6a19db2edb4723fc27a5f498dca19954a34e90c5f13700a47479c38916'
+'12b1cf1072bb734fc2d9fcbef8c8c05f2873bf4181a8d56dcb44f68371bb41cc'
+'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.tar.gz::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'
@@ -36,23 +35,44 @@ for i in "${!arches[@]}"; do
)"
done
+postinst='postinst'
+prerm='prerm'
+
+noextract=(eclipse.tar.gz)
+
+prepare(){
+ cd "${srcdir}"
+}
+
package() {
- 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/"
+
+ install -d "${pkgdir}/usr/share/applications/" "${pkgdir}/usr/bin/"
+ install -m 755 "${srcdir}/eclipse.sh" "${pkgdir}/usr/bin/eclipse"
+ install -m 644 "${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/share/"
-
-
- cd "${pkgdir}/usr"
- chmod 754 bin/eclipse
- cd share/
- chmod -R 770 eclipse
- chmod -R g+s,u-s eclipse
+ mv "${srcdir}/eclipse" "${pkgdir}/usr/share/eclipse"
+
+ cd "${pkgdir}/usr/share/"
+
+ shopt -s globstar
+ shopt -s dotglob
+
+ for i in ./**; do
+ # chgrp "${group}" "$i";
+ # chown "${user}" "$i";
+ # echo "$i";
+ if [ -d "$i" ]; then
+ chmod 775 "$i";
+ chmod 'g+s' "$i";
+ # setfacl -d -m g:"${group}":rw,u:"${user}":rw "$i";
+ else
+ chmod g=u "$i";
+ fi;
+ done
+
+# chmod 775 "eclipse/eclipse"
}
diff --git a/postinst b/postinst
index a30e0be..b5238b9 100644
--- a/postinst
+++ b/postinst
@@ -1,4 +1,7 @@
#!/bin/sh
-groupadd eclipsedev
-chgrp eclipsedev /usr/share/eclipse -R
-chgrp eclipsedev /usr/bin/eclipse
+group=eclipsedev
+groupadd ${group}
+chgrp ${group} /usr/share/eclipse -R
+chgrp ${group} /usr/bin/eclipse
+setfacl -R -d -m g:${group}:rw /usr/share/eclipse
+getfacl /usr/share/eclipse