39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'liteide'
|
|
pkgname=liteide
|
|
version=37.4
|
|
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=8b6842ead4915aaf4ee691962259ae290a37c00e3669c50b61e4386bf133e5ce
|
|
|
|
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 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
|
|
}
|