liteide: update to 37.3

This commit is contained in:
Jürgen Buchmüller 2021-01-31 03:43:38 +01:00
parent 50b98ed751
commit 0c51269514

View file

@ -1,24 +1,43 @@
# Template file for 'liteide'
pkgname=liteide
version=36.3
version=37.3
revision=1
wrksrc="liteide-x${version}"
build_wrksrc=liteidex
build_style=qmake
hostmakedepends="qt5-qmake"
makedepends="qt5-tools-devel"
hostmakedepends="go qt5-qmake qt5-host-tools"
makedepends="libglvnd-devel libvterm-devel qt5-tools-devel qt5-webkit-devel"
depends="go"
short_desc="Simple, open source, cross-platform Go IDE"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://liteide.org/"
distfiles="https://github.com/visualfc/liteide/archive/x${version}.tar.gz"
checksum=d1b2b6a7994b764f7b12550e4759c90da18de574eb8544eebbcee98d7741c801
checksum=e91e52ae7f9fdb8c904ef0f11f462b48eff6550b97c58928e848b5fe1f0bc198
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools"
CXXFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/qt5"
for i in ${XBPS_CROSS_BASE}/usr/include/qt5/*; do
CXXFLAGS+=" -I$i"
done
fi
pre_configure() {
# Use system libvterm instead of the one shipped
vsed -i -e 's;libvterm;;' src/3rdparty/3rdparty.pro
# Remove wrong extra 'lib' prefix
vsed -i -e 's;libvterm;vterm;' src/utils/vterm/vterm.pri
}
post_install() {
ln -frs ${DESTDIR}/usr/bin/{liteide,golangide}
# Package resources
vmkdir usr/share/liteide
cp -ar deploy/* os_deploy/* ${DESTDIR}/usr/share/liteide
# Package license files
vlicense LICENSE.LGPL LICENSE
vlicense LGPL_EXCEPTION.TXT LGPL_EXCEPTION
# Package desktop shortcut
vinstall liteide.desktop 644 usr/share/applications
vmkdir usr/share/pixmaps
vinstall deploy/welcome/images/liteide400.png 644 usr/share/pixmaps liteide.png
# Fix for FS#38781
mv ${DESTDIR}/usr/share/liteide/{linux/,}liteenv
}