From 539da10012d0f7b92999a7016d567ca4ae6b129c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:01:04 +0100 Subject: [PATCH] package created using the webbuild interface [release 2022.2.1_222.3739.61-1mamba;Fri Sep 09 2022] --- README.md | 2 + jetbrains-phpstorm.desktop | 10 +++++ phpstorm.spec | 81 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 jetbrains-phpstorm.desktop create mode 100644 phpstorm.spec diff --git a/README.md b/README.md index 8826996..3a0252a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # phpstorm +Lightweight and Smart PHP IDE. + diff --git a/jetbrains-phpstorm.desktop b/jetbrains-phpstorm.desktop new file mode 100644 index 0000000..2e96b14 --- /dev/null +++ b/jetbrains-phpstorm.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=PhpStorm +Icon=phpstorm +Exec=/usr/share/phpstorm/bin/phpstorm.sh %f +Comment=Lightning-smart PHP IDE +Categories=Development;IDE; +Terminal=false +StartupWMClass=jetbrains-phpstorm diff --git a/phpstorm.spec b/phpstorm.spec new file mode 100644 index 0000000..32f3d0b --- /dev/null +++ b/phpstorm.spec @@ -0,0 +1,81 @@ +%define pkgver %(echo %version | cut -d_ -f1) +%define dirver %(echo %version | cut -d_ -f2) +Name: phpstorm +Version: 2022.2.1_222.3739.61 +Release: 1mamba +Summary: Lightweight and Smart PHP IDE +Group: Graphical Desktop/Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.jetbrains.com/phpstorm/ +Source: https://download.jetbrains.com/webide/PhpStorm-%{pkgver}.tar.gz +Source1: jetbrains-phpstorm.desktop +License: Custom +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END + +%description +Lightweight and Smart PHP IDE. + +%package jre +Group: System/Libraries +Summary: JBR (JetBrains Runtime) for PHPStorm - a patched JRE + +%description jre +JBR (JetBrains Runtime) for PHPStorm - a patched JRE. + +%debug_package + +%define _build_id_links none +%global __requires_exclude_from ^%{_datadir}/phpstorm/.*$ +%global __provides_exclude_from ^%{_datadir}/phpstorm/.*$ + +%prep +%setup -q -n PhpStorm-%{dirver} + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +install -d -m0755 %{buildroot}{%{_datadir}/phpstorm,%{_bindir}} + +cp -a * %{buildroot}%{_datadir}/phpstorm/ + +ln -s %{_datadir}/phpstorm/bin/webstorm.sh %{buildroot}%{_bindir}/phpstorm +install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/jetbrains-phpstorm.desktop +install -D -m644 bin/phpstorm.svg %{buildroot}%{_datadir}/pixmaps/phpstorm.svg + +rm -f %{buildroot}%{_datadir}/phpstorm/Install-Linux-tar.txt + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/phpstorm +%{_datadir}/applications/jetbrains-phpstorm.desktop +%{_datadir}/pixmaps/phpstorm.svg +%dir %{_datadir}/phpstorm +%{_datadir}/phpstorm/build.txt +%{_datadir}/phpstorm/product-info.json +%dir %{_datadir}/phpstorm/bin +%{_datadir}/phpstorm/bin/* +%dir %{_datadir}/phpstorm/help +%{_datadir}/phpstorm/help/*.pdf +%dir %{_datadir}/phpstorm/lib +%{_datadir}/phpstorm/lib/* +%dir %{_datadir}/phpstorm/license +%{_datadir}/phpstorm/license/* +%dir %{_datadir}/phpstorm/plugins +%{_datadir}/phpstorm/plugins/* + +%files jre +%defattr(-,root,root) +%dir %{_datadir}/phpstorm/jbr +%{_datadir}/phpstorm/jbr/* + +%changelog +* Fri Sep 09 2022 Silvan Calarco 2022.2.1_222.3739.61-1mamba +- package created using the webbuild interface