44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
# Template file for 'liteide'
|
|
pkgname=liteide
|
|
version=37.3
|
|
revision=1
|
|
wrksrc="liteide-x${version}"
|
|
build_wrksrc=liteidex
|
|
build_style=qmake
|
|
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=e91e52ae7f9fdb8c904ef0f11f462b48eff6550b97c58928e848b5fe1f0bc198
|
|
|
|
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
|
|
}
|