diff --git a/srcpkgs/WebStorm/INSTALL.msg b/srcpkgs/WebStorm/INSTALL.msg new file mode 100644 index 00000000000..8fe3d069415 --- /dev/null +++ b/srcpkgs/WebStorm/INSTALL.msg @@ -0,0 +1,2 @@ +WebStorm has the following optional dependencies: + libdbusmenu-glib: For global menu support diff --git a/srcpkgs/WebStorm/template b/srcpkgs/WebStorm/template new file mode 100644 index 00000000000..6602c930613 --- /dev/null +++ b/srcpkgs/WebStorm/template @@ -0,0 +1,60 @@ +# Template file for 'WebStorm' +pkgname=WebStorm +version=2019.1.3 +revision=1 +archs="i686 x86_64" +wrksrc="WebStorm-191.7479.14" +depends="virtual?java-environment" +short_desc="Smartest JavaScript IDE" +maintainer="Anton Afanasyev " +license="custom:Commercial" +homepage="https://www.jetbrains.com/webstorm" +distfiles="https://download.jetbrains.com/webstorm/WebStorm-${version}.tar.gz" +checksum=c3ef27051f6de608ee679035957a8a4329897c910b046cb2dbbf840cc8151dae +repository=nonfree +restricted=yes +nopie=yes + +post_extract() { + # Remove files for other CPU architectures + rm -rf bin/fsnotifier-arm + rm -rf lib/pty4j-native/linux/ppc64le + + case "$XBPS_TARGET_MACHINE" in + x86_64) + rm -rf bin/fsnotifier + rm -rf bin/webstorm.vmoptions + rm -rf bin/libyjpagent-linux.so + rm -rf lib/pty4j-native/linux/x86 + ;; + i686) + rm -rf bin/fsnotifier64 + rm -rf bin/webstorm64.vmoptions + rm -rf bin/libyjpagent-linux64.so + rm -rf lib/pty4j-native/linux/x86_64 + ;; + esac + + rm -rf jre64 +} + +do_install() { + TARGET_PATH="usr/lib/${pkgname}" + LICENSE_PATH="usr/share/licenses/${pkgname}" + + vmkdir usr/bin + vmkdir ${TARGET_PATH} + vmkdir ${LICENSE_PATH} + + # Ideally vlicense should be called here, but vcopy is more terse. + vcopy license/* ${LICENSE_PATH} + + vcopy bin ${TARGET_PATH} + vcopy help ${TARGET_PATH} + vcopy lib ${TARGET_PATH} + vcopy plugins ${TARGET_PATH} + vcopy product-info.json ${TARGET_PATH} + vcopy build.txt ${TARGET_PATH} + + ln -sf /${TARGET_PATH}/bin/webstorm.sh ${DESTDIR}/usr/bin/${pkgname} +} diff --git a/srcpkgs/WebStorm/update b/srcpkgs/WebStorm/update new file mode 100644 index 00000000000..a284d8a6436 --- /dev/null +++ b/srcpkgs/WebStorm/update @@ -0,0 +1,2 @@ +pattern="WebStorm-\K[\d.]+(?=\.tar)" +site="https://data.services.jetbrains.com/products/releases?code=WS&latest=true&type=release"