# JetBrains' tools are self-sufficient and while they include code that appears to be linked to libs from other packages, these libs are either included in the tool package, or the code works by looking for one of several supported libs.
noverifyrdeps=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/phpstorm.vmoptions
rm -rf bin/libyjpagent-linux.so
rm -rf lib/pty4j-native/linux/x86
;;
i686)
rm -rf bin/fsnotifier64
rm -rf bin/phpstorm64.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}
local i
for i in license/* ;do
vlicense $i
done
locallauncher_path="bin/phpstorm.sh"
sed -i '1 s/$/\nPHPSTORM_JDK=${PHPSTORM_JDK:-${IDEA_JDK}}/'"${launcher_path}"