2019-05-07 10:03:29 +02:00
|
|
|
# Template file for 'WebStorm'
|
|
|
|
pkgname=WebStorm
|
2019-12-15 08:57:19 +01:00
|
|
|
version=2019.3
|
2019-05-07 10:03:29 +02:00
|
|
|
revision=1
|
|
|
|
archs="i686 x86_64"
|
2019-12-15 08:57:19 +01:00
|
|
|
wrksrc="WebStorm-193.5233.80"
|
|
|
|
depends="jetbrains-jdk-bin"
|
2019-05-07 10:03:29 +02:00
|
|
|
short_desc="Smartest JavaScript IDE"
|
|
|
|
maintainer="Anton Afanasyev <anton@doubleasoftware.com>"
|
|
|
|
license="custom:Commercial"
|
|
|
|
homepage="https://www.jetbrains.com/webstorm"
|
|
|
|
distfiles="https://download.jetbrains.com/webstorm/WebStorm-${version}.tar.gz"
|
2019-12-15 08:57:19 +01:00
|
|
|
checksum=63ffa9d500182909078356157dd4c7ee97abfc55c51bced45d71423c7230e593
|
2019-05-07 10:03:29 +02:00
|
|
|
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
|
2019-10-11 18:33:11 +02:00
|
|
|
rm -rf bin/fsnotifier-arm
|
2019-05-07 10:03:29 +02:00
|
|
|
rm -rf bin/webstorm.vmoptions
|
|
|
|
rm -rf bin/libyjpagent-linux.so
|
|
|
|
rm -rf lib/pty4j-native/linux/x86
|
|
|
|
;;
|
|
|
|
i686)
|
|
|
|
rm -rf bin/fsnotifier64
|
2019-10-11 18:33:11 +02:00
|
|
|
rm -rf bin/fsnotifier-arm
|
2019-05-07 10:03:29 +02:00
|
|
|
rm -rf bin/webstorm64.vmoptions
|
|
|
|
rm -rf bin/libyjpagent-linux64.so
|
|
|
|
rm -rf lib/pty4j-native/linux/x86_64
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
TARGET_PATH="usr/lib/${pkgname}"
|
|
|
|
|
|
|
|
vmkdir usr/bin
|
|
|
|
vmkdir ${TARGET_PATH}
|
|
|
|
|
2019-10-11 18:33:11 +02:00
|
|
|
local i
|
|
|
|
for i in license/* ; do
|
|
|
|
vlicense $i
|
|
|
|
done
|
2019-05-07 10:03:29 +02:00
|
|
|
|
2019-12-15 08:57:19 +01:00
|
|
|
mkdir -p /usr/lib/jvm/jbrsdk
|
|
|
|
ln -sf /usr/lib/jvm/jbrsdk ${DESTDIR}/${TARGET_PATH}/jbr
|
2019-05-07 10:03:29 +02:00
|
|
|
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}
|
|
|
|
}
|