summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarson Black2020-09-21 17:18:18 -0400
committerCarson Black2020-09-21 17:24:20 -0400
commiteac61264a7af69762955d2460ed43f0ebf453b77 (patch)
tree397cd54be161f4775dcc740670901f1f87ff2ff2
parentfd441fa0e8012bf58b9c6332c63dd08aa7d4de5d (diff)
downloadaur-eac61264a7af69762955d2460ed43f0ebf453b77.tar.gz
De-commonify package when building for AUR
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD17
2 files changed, 33 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ef8dbb3ba30..5c4441401b4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = eclipse
pkgdesc = Highly extensible IDE
pkgver = 4.17
- pkgrel = 1
+ pkgrel = 2
epoch = 2
url = https://eclipse.org
arch = x86_64
@@ -28,26 +28,33 @@ pkgbase = eclipse
sha256sums_x86_64 = b5bddcd1bf8c602f5304e400d199e9377d6d47fd61f99cbec95e7246aa184d5c
sha256sums_x86_64 = 896df756643ca2cf17803ffde785181f5660fc23148957b58d2e853b4a88f284
-pkgname = eclipse-common
- pkgdesc = Highly extensible IDE (common files)
+pkgname = eclipse-java
depends = java-environment>=8
depends = webkit2gtk
depends = unzip
-pkgname = eclipse-java
- depends = eclipse-common
-
pkgname = eclipse-jee
- depends = eclipse-common
+ depends = java-environment>=8
+ depends = webkit2gtk
+ depends = unzip
pkgname = eclipse-cpp
- depends = eclipse-common
+ depends = java-environment>=8
+ depends = webkit2gtk
+ depends = unzip
pkgname = eclipse-php
- depends = eclipse-common
+ depends = java-environment>=8
+ depends = webkit2gtk
+ depends = unzip
pkgname = eclipse-javascript
- depends = eclipse-common
+ depends = java-environment>=8
+ depends = webkit2gtk
+ depends = unzip
pkgname = eclipse-rust
- depends = eclipse-common
+ depends = java-environment>=8
+ depends = webkit2gtk
+ depends = unzip
+
diff --git a/PKGBUILD b/PKGBUILD
index d1df14c86b1..4c6c024e85d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,10 +6,16 @@
# Contributor: Andreas W. Hauser <andy-aur@splashground.de>
# Contributor: Marco Crosio <marco.crosio@gmail.com>
+# Toggle this if you're building outside of the AUR, for a repo.
+AUR_BUILD=true
+
pkgbase=eclipse
-pkgname=(eclipse-{common,java,jee,cpp,php,javascript,rust})
+pkgname=(eclipse-{java,jee,cpp,php,javascript,rust})
+if [ "$AUR_BUILD" = false ]; then
+pkgname+=(eclipse-common)
+fi
pkgver=4.17
-pkgrel=1
+pkgrel=2
epoch=2
_release=2020-09/R
pkgdesc="Highly extensible IDE"
@@ -54,9 +60,11 @@ prepare() {
}
build() {
+ if [ "$AUR_BUILD" = false ]; then
mkdir eclipse-common/dropins
touch eclipse-common/dropins/.keep
./commonify --identical ${pkgname[@]}
+ fi
}
package_eclipse-common() {
@@ -81,7 +89,10 @@ _package() {
esac
pkgdesc+=" for $variant"
+ depends=("java-environment>=8" webkit2gtk unzip)
+ if [ "$AUR_BUILD" = false ]; then
depends=("eclipse-common=$pkgver-$pkgrel" bash)
+ fi
provides=("eclipse=$pkgver-$pkgrel")
conflicts=(eclipse)
@@ -106,8 +117,10 @@ Categories=Development;IDE;Java;
StartupNotify=true
END
+ if [ "$AUR_BUILD" = false ]; then
for i in 16 22 24 32 48 64 128 256 512 1024; do
install -Dm644 eclipse-common/plugins/org.eclipse.platform_*/eclipse$i.png \
"$pkgdir/usr/share/icons/hicolor/${i}x$i/apps/eclipse.png"
done
+ fi
}