1c081e70ae
to avoid desensitising the user to ignorable INSTALL.msgs, move ones that just specify things like optional dependencies and initial configuration tips to README.voidlinux
62 lines
1.5 KiB
Bash
62 lines
1.5 KiB
Bash
# Template file for 'PhpStorm'
|
|
pkgname=PhpStorm
|
|
version=2020.1.4
|
|
revision=1
|
|
archs="i686 x86_64"
|
|
depends="jetbrains-jdk-bin"
|
|
short_desc="Lightning-smart PHP IDE"
|
|
maintainer="Anton Afanasyev <anton@doubleasoftware.com>"
|
|
license="custom:Commercial"
|
|
homepage="https://www.jetbrains.com/phpstorm"
|
|
distfiles="https://download.jetbrains.com/webide/PhpStorm-${version}.tar.gz"
|
|
checksum=a23922f5f93bc8df1f2aabbb0f9969e27d28f706c09d18d66d4cc2d56c52ddc9
|
|
repository=nonfree
|
|
restricted=yes
|
|
nopie=yes
|
|
python_version=3
|
|
|
|
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
|
|
|
|
local launcher_path="bin/phpstorm.sh"
|
|
sed -i '1 s/$/\nPHPSTORM_JDK=${PHPSTORM_JDK:-${IDEA_JDK}}/' "${launcher_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}/${launcher_path}" "${DESTDIR}/usr/bin/${pkgname}"
|
|
vdoc "${FILESDIR}/README.voidlinux"
|
|
}
|