mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 43c82bcee7 | |||
| db9b19680f | |||
| 527810c78f | |||
| c93f2b1ab2 | |||
| 96ab848b18 | |||
| fd2612a0ca | |||
| 7b0dcab59d | |||
| 537dbf0725 | |||
| bc17a13461 | |||
| b1717aab74 | |||
| 6cd8535f0d | |||
| 42c1f68639 |
@@ -0,0 +1,5 @@
|
|||||||
|
project pkg {
|
||||||
|
rpm {
|
||||||
|
spec = "intellij-idea-community.spec"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/platform/build-scripts/src/org/jetbrains/intellij/build/LinuxDistributionCustomizer.kt b/platform/build-scripts/src/org/jetbrains/intellij/build/LinuxDistributionCustomizer.kt
|
||||||
|
--- a/platform/build-scripts/src/org/jetbrains/intellij/build/LinuxDistributionCustomizer.kt (revision 7e0cfee10427cc87a372ef23d6bf083cc35fdb5e)
|
||||||
|
+++ b/platform/build-scripts/src/org/jetbrains/intellij/build/LinuxDistributionCustomizer.kt (date 1670176639293)
|
||||||
|
@@ -24,7 +24,7 @@
|
||||||
|
/**
|
||||||
|
* If {@code true} a separate *-no-jbr.tar.gz artifact without runtime will be produced.
|
||||||
|
*/
|
||||||
|
- var buildTarGzWithoutBundledRuntime = false
|
||||||
|
+ var buildTarGzWithoutBundledRuntime = true
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If {@code true}, the only *-no-jbr.tar.gz will be produced, no other binaries for Linux will be built.
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
Name: intellij-idea-community
|
||||||
|
Version: 231.9161.38
|
||||||
|
Release: 1%?dist
|
||||||
|
Summary: IDE for Java/Groovy/etc. with advanced refactoring features
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://jetbrains.com/idea
|
||||||
|
Source0: https://github.com/JetBrains/intellij-community/archive/refs/tags/idea/%version.tar.gz
|
||||||
|
Source1: https://github.com/JetBrains/android/archive/refs/tags/idea/%version.tar.gz
|
||||||
|
Source2: https://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar
|
||||||
|
Patch0: enable-no-jdr.patch
|
||||||
|
Requires: giflib java-latest-openjdk python3 bash libdbusmenu fontconfig hicolor-icon-theme
|
||||||
|
BuildRequires: ant git java-latest-openjdk-devel maven
|
||||||
|
|
||||||
|
%description
|
||||||
|
Intellij IDEA is an IDE for Java, Groovy and other programming languages with
|
||||||
|
advanced refactoring features.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
tar xf %SOURCE1
|
||||||
|
|
||||||
|
cat<<EOF > idea.desktop
|
||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Name=IntelliJ IDEA Community Edition
|
||||||
|
Comment=Develop with pleasure!
|
||||||
|
Exec=/usr/bin/idea %f
|
||||||
|
Icon=idea
|
||||||
|
Terminal=false
|
||||||
|
StartupNotify=true
|
||||||
|
StartupWMClass=jetbrains-idea-ce
|
||||||
|
Categories=Development;IDE;Java;
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
cat<<EOF > idea.sh
|
||||||
|
#!/bin/sh
|
||||||
|
if [ -z "$IDEA_JDK" ] ; then
|
||||||
|
IDEA_JDK="/usr/lib/jvm/java-17-openjdk/"
|
||||||
|
fi
|
||||||
|
# open-jfx location that should match the JDK version
|
||||||
|
if [ -z "$IDEA_JFX" ] ; then
|
||||||
|
IDEA_JFX="/usr/lib/jvm/java-17-openjfx/"
|
||||||
|
fi
|
||||||
|
# classpath according to defined JDK/JFX
|
||||||
|
if [ -z "$IDEA_CLASSPATH" ] ; then
|
||||||
|
IDEA_CLASSPATH="${IDEA_JDK}/lib/*:${IDEA_JFX}/lib/*"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec env IDEA_JDK="$IDEA_JDK" IDEA_CLASSPATH="$IDEA_CLASSPATH" %_datadir/idea/bin/idea.sh "$@"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
export MAVEN_REPOSITORY=%HOME/.m2/repository
|
||||||
|
mvn install:install-file -Dfile=%SOURCE2 -DgroupId=junit -DartifactId=junit -Dversion=3.8.1 -Dpackaging=jar -DgeneratePom=true
|
||||||
|
|
||||||
|
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
|
||||||
|
export PATH="/usr/lib/jvm/java-17-openjdk/bin:$PATH"
|
||||||
|
|
||||||
|
./installers.cmd -Dintellij.build.use.compiled.classes=false -Dintellij.build.target.os=linux
|
||||||
|
|
||||||
|
tar xf out/idea-ce/artifacts/ideaIC-%version-no-jbr.tar.gz -C .
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
cd idea-IC-%version
|
||||||
|
install -dm755 %buildroot%_datadir/{pixmaps,idea,icons/hicolor/scalable/apps}
|
||||||
|
cp -dr --no-preserve='ownership' bin lib plugins %buildroot%_datadir/idea/
|
||||||
|
ln -s %_datadir/idea/bin/idea.png %buildroot%_datadir/pixmaps/
|
||||||
|
ln -s %_datadir/idea/bin/idea.svg %buildroot%_datadir/icons/hicolor/scalable/apps/
|
||||||
|
install -Dm644 ../idea.desktop -t %buildroot%_datadir/applications/
|
||||||
|
install -Dm755 ../idea.sh %buildroot/%_bindir/idea
|
||||||
|
chmod +x %buildroot/%_bindir/idea
|
||||||
|
echo %version > build.txt
|
||||||
|
install -Dm644 build.txt -t %buildroot%_datadir/idea
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc README.md docs/
|
||||||
|
%license idea-IC-%version/license
|
||||||
|
%_datadir/pixmaps/idea.png
|
||||||
|
%_datadir/icons/hicolor/scalable/apps/idea.svg
|
||||||
|
%_datadir/applications/idea.desktop
|
||||||
|
%_bindir/idea
|
||||||
|
%_datadir/idea/
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
%autochangelog
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
let ver = gh_tag("JetBrains/intellij-community");
|
||||||
|
let ver2 = gh_tag("JetBrains/android");
|
||||||
|
if ver.starts_with("idea/") && ver == ver2 {
|
||||||
|
ver.remove("idea/");
|
||||||
|
rpm.version(ver);
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
project pkg {
|
||||||
|
rpm {
|
||||||
|
spec = "intellij-idea-ultimate.spec"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
%global buildver 231.9161.38
|
||||||
|
%global jbr_ver 17.0.6
|
||||||
|
%global jbr_build aarch64-b469
|
||||||
|
%global jbr_minor 82
|
||||||
|
|
||||||
|
Name: intellij-idea-ultimate
|
||||||
|
Version: 2023.1.3
|
||||||
|
Release: 1%?dist
|
||||||
|
Summary: IDE for Java/Groovy/etc. with advanced refactoring features
|
||||||
|
License: Unlicense
|
||||||
|
URL: https://jetbrains.com/idea
|
||||||
|
Source0: https://download.jetbrains.com/idea/ideaIU-%version.tar.gz
|
||||||
|
Requires: giflib libXtst libXrender
|
||||||
|
Suggests: %name-jre
|
||||||
|
Recommends: libdbusmenu java-latest-openjdk
|
||||||
|
|
||||||
|
|
||||||
|
%ifarch aarch64
|
||||||
|
Source1: https://cache-redirector.jetbrains.com/intellij-jbr/jbr-%jbr_ver-linux-%jbr_build.%jbr_minor.tar.gz
|
||||||
|
Source2: https://github.com/JetBrains/intellij-community/raw/master/bin/linux/aarch64/fsnotifier
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
Intellij IDEA is an IDE for Java, Groovy and other programming languages with
|
||||||
|
advanced refactoring features.
|
||||||
|
|
||||||
|
|
||||||
|
%package jre
|
||||||
|
Summary: IDE for Java/Groovy/etc. with advanced refactoring features
|
||||||
|
|
||||||
|
%description jre
|
||||||
|
Intellij IDEA is an IDE for Java, Groovy and other programming languages with
|
||||||
|
advanced refactoring features.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n idea-IU-%buildver
|
||||||
|
|
||||||
|
# https://youtrack.jetbrains.com/articles/IDEA-A-48/JetBrains-IDEs-on-AArch64#linux
|
||||||
|
%ifarch aarch64
|
||||||
|
tar xf %SOURCE1
|
||||||
|
tar xf %SOURCE2
|
||||||
|
cp -f fsnotifier bin/fsnotifier
|
||||||
|
chmod +x bin/fsnotifier
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
cat<<EOF > jetbrains-idea.desktop
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=IntelliJ IDEA Ultimate Edition
|
||||||
|
Comment=Intelligent Java IDE
|
||||||
|
Exec=intellij-idea-ultimate-edition %u
|
||||||
|
Icon=intellij-idea-ultimate-edition
|
||||||
|
Terminal=false
|
||||||
|
StartupWMClass=jetbrains-idea
|
||||||
|
Type=Application
|
||||||
|
Categories=Development;IDE;
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d %buildroot%_bindir %buildroot%_datadir/%name
|
||||||
|
mv * %buildroot%_datadir/%name
|
||||||
|
# https://youtrack.jetbrains.com/issue/IDEA-185828
|
||||||
|
chmod +x %buildroot%_datadir/%name/plugins/maven/lib/maven3/bin/mvn
|
||||||
|
ln -s %_datadir/%name/bin/idea.sh %buildroot%_bindir/%name
|
||||||
|
mkdir -p %buildroot%_datadir/applications %buildroot%_datadir/pixmaps
|
||||||
|
install -Dm644 jetbrains-idea.desktop %buildroot%_datadir/applications/jetbrains-idea.desktop
|
||||||
|
install -Dm644 %buildroot%_datadir/%name/bin/idea.svg %buildroot%_datadir/pixmaps/%name.svg
|
||||||
|
|
||||||
|
# workaround FS#40934
|
||||||
|
sed -i 's|lcd|on|' %buildroot/%name/bin/*.vmoptions
|
||||||
|
|
||||||
|
mv jbr %buildroot%_datadir/%name
|
||||||
|
|
||||||
|
%files
|
||||||
|
%_datadir/%name
|
||||||
|
%_bindir/%name
|
||||||
|
%_datadir/applications/jetbrains-idea.desktop
|
||||||
|
%_datadir/pixmaps/%name.svg
|
||||||
|
|
||||||
|
%files jre
|
||||||
|
%buildroot%_datadir/%name/jbr
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
%autochangelog
|
||||||
Reference in New Issue
Block a user