2
0

Fix quotation marks in variables and fix remove command

This commit is contained in:
XavierCLL 2020-04-21 13:26:55 -07:00
parent f3f55ff7ce
commit 2080db6ee2

View File

@ -11,9 +11,9 @@ conflicts=('pycharm' 'pycharm-community-edition')
provides=('pycharm')
license=('custom')
backup=(
opt/$pkgname/bin/pycharm.vmoptions
opt/$pkgname/bin/pycharm64.vmoptions
opt/$pkgname/bin/idea.properties
"opt/$pkgname/bin/pycharm.vmoptions"
"opt/$pkgname/bin/pycharm64.vmoptions"
"opt/$pkgname/bin/idea.properties"
)
depends=('giflib' 'glibc' 'sh' 'ttf-font' 'libxtst' 'libxslt' 'python')
source=("https://download.jetbrains.com/python/$pkgname-$_pkgver.tar.gz"
@ -49,37 +49,37 @@ optdepends=('ttf-jetbrains-mono: Official mono font by JetBrains'
'python-docutils-stubs: For build documentation with sphynx')
build() {
cd pycharm-$_pkgver
cd "pycharm-$_pkgver"
# compile PyDev debugger used by PyCharm to speedup debugging
python3 plugins/python/helpers/pydev/setup_cython.py build_ext --build-temp build --build-lib .
rm -rf bin/fsnotifier{,-arm} lib/libpty/linux/x86
rm -r bin/fsnotifier{,-arm} lib/libpty/linux/x86
}
package() {
# workaround FS#40934
sed -i 's/lcd/on/' pycharm-$_pkgver/bin/*.vmoptions
sed -i "s/lcd/on/" "pycharm-$_pkgver/bin/*.vmoptions"
# base
install -dm 755 $pkgdir/opt/$pkgname
cp -dr --no-preserve=ownership pycharm-$_pkgver/* $pkgdir/opt/$pkgname/
install -dm 755 $pkgdir/usr/share/{applications,pixmaps}
install -Dm 644 $pkgdir/opt/$pkgname/bin/pycharm.png $pkgdir/usr/share/pixmaps/pycharm.png
install -Dm 644 pycharm-professional.desktop $pkgdir/usr/share/applications/
install -dm 755 "$pkgdir/opt/$pkgname"
cp -dr --no-preserve=ownership "pycharm-$_pkgver/*" "$pkgdir/opt/$pkgname/"
install -dm 755 "$pkgdir/usr/share/{applications,pixmaps}"
install -Dm 644 "$pkgdir/opt/$pkgname/bin/pycharm.png" "$pkgdir/usr/share/pixmaps/pycharm.png"
install -Dm 644 pycharm-professional.desktop "$pkgdir/usr/share/applications/"
# remove internal fonts, instead use system fonts
rm -rf $pkgdir/opt/pycharm-professional/jbr/lib/fonts
rm -r "$pkgdir/opt/pycharm-professional/jbr/lib/fonts"
# exec
install -dm 755 $pkgdir/usr/bin/
install -Dm 755 pycharm $pkgdir/usr/bin/
install -dm 755 "$pkgdir/usr/bin/"
install -Dm 755 pycharm "$pkgdir/usr/bin/"
# licenses
install -dm 755 $pkgdir/usr/share/licenses/$pkgname/
cp -dr --no-preserve=ownership pycharm-$_pkgver/license/* $pkgdir/usr/share/licenses/$pkgname/
install -dm 755 "$pkgdir/usr/share/licenses/$pkgname/"
cp -dr --no-preserve=ownership "pycharm-$_pkgver/license/*" "$pkgdir/usr/share/licenses/$pkgname/"
# install charm application - for edit a single file in Pycharm
install -Dm 755 charm $pkgdir/usr/bin/
install -Dm 644 charm.desktop $pkgdir/usr/share/applications/
install -Dm 755 charm "$pkgdir/usr/bin/"
install -Dm 644 charm.desktop "$pkgdir/usr/share/applications/"
}