void-packages/srcpkgs/RubyMine/template
2019-12-16 20:53:32 +01:00

58 lines
1.3 KiB
Bash

# Template file for 'RubyMine'
pkgname=RubyMine
version=2019.3
revision=1
archs="i686 x86_64"
depends="virtual?java-environment"
short_desc="Most intelligent Ruby and Rails IDE"
maintainer="Anton Afanasyev <anton@doubleasoftware.com>"
license="custom:Commercial"
homepage="https://www.jetbrains.com/ruby"
distfiles="https://download.jetbrains.com/ruby/RubyMine-${version}.tar.gz"
checksum=f268a08d92e57362410f5089b9151ada776198a21f49c1096df0b20b948c79f7
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/rubymine.vmoptions
rm -rf bin/libyjpagent-linux.so
rm -rf lib/pty4j-native/linux/x86
;;
i686)
rm -rf bin/fsnotifier64
rm -rf bin/rubymine64.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
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/rubymine.sh ${DESTDIR}/usr/bin/${pkgname}
}