45 lines
1.6 KiB
Bash
45 lines
1.6 KiB
Bash
# Maintainer: Philip May <eniak.info@gmail.com>
|
|
# Contributor: mark blakeney at bullet dash systems dot net
|
|
_appname=pycharm-community
|
|
pkgname=$_appname-jre
|
|
pkgver=2023.3.4
|
|
pkgrel=1
|
|
pkgdesc="PyCharm Community Edition IDE for Python with bundled JRE"
|
|
arch=(x86_64 aarch64)
|
|
url="https://www.jetbrains.com/pycharm/"
|
|
license=('APACHE')
|
|
conflicts=(
|
|
"pycharm-community-eap"
|
|
"pycharm-community-edition"
|
|
)
|
|
source=(
|
|
pycharm.desktop
|
|
pycharm.sh
|
|
)
|
|
options=(!strip)
|
|
sha256sums=('f727119ec7c8b96820e80712b1ee342de6a94ff72402e8f2d390cbff702f9b21'
|
|
'b6f0518e59c4744ded38de63efba91205bcba406fa74944a1f3a8937566d8acc')
|
|
sha256sums_x86_64=('27546b7900c0da52baa9b14f88406c2b1244c570363e506f225bf101e65cea79')
|
|
sha256sums_aarch64=('9c9678921b118f90519ba73543c63657d262e6aa7a7fe6b2293dcd5f26943531')
|
|
|
|
source_x86_64=("https://download.jetbrains.com/python/pycharm-community-${pkgver}.tar.gz")
|
|
|
|
source_aarch64=("https://download.jetbrains.com/python/pycharm-community-${pkgver}-aarch64.tar.gz")
|
|
|
|
package() {
|
|
cd "${_appname}-${pkgver}"
|
|
|
|
# workaround FS#40934
|
|
# see https://bugs.archlinux.org/task/40934
|
|
sed -i 's/lcd/on/' bin/*.vmoptions
|
|
|
|
rm -rf bin/fsnotifier-arm
|
|
|
|
install -dm 755 "${pkgdir}"/usr/share/{licenses,pixmaps,pycharm}
|
|
cp -dr --no-preserve='ownership' bin jbr lib plugins "${pkgdir}"/usr/share/pycharm/
|
|
cp -dr --no-preserve='ownership' license "${pkgdir}"/usr/share/licenses/pycharm/
|
|
ln -s /usr/share/pycharm/bin/pycharm.png "${pkgdir}"/usr/share/pixmaps/
|
|
install -Dm 644 ../pycharm.desktop -t "${pkgdir}"/usr/share/applications/
|
|
install -Dm 755 ../pycharm.sh "${pkgdir}"/usr/bin/pycharm
|
|
}
|