void-packages/srcpkgs/scite/template
2019-06-17 15:00:48 +02:00

34 lines
997 B
Bash

# Template file for 'scite'
pkgname=scite
version=4.1.7
revision=1
create_wrksrc=yes
hostmakedepends="pkg-config"
makedepends="gtk+-devel lua-devel"
short_desc="SCIntilla based Text Editor"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="http://www.scintilla.org/SciTEDownload.html"
distfiles="http://www.scintilla.org/scite${version//./}.tgz"
checksum=8fc0a4c615056440df553db00f9a20926935c4c5e5ce6d4671def20753834c96
post_extract() {
sed -i 's/gthread-2.0/& lua/' scite/gtk/makefile
}
do_build() {
make ${makejobs} -C scintilla/gtk \
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
CC="$CC $LDFLAGS" CXX="$CXX $LDFLAGS"
make ${makejobs} -C scite/gtk \
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
CC="$CC $LDFLAGS" CXX="$CXX $LDFLAGS" \
LUA_CORE_OBJS= LUA_LIB_OBJS=
}
do_install() {
make ${makejobs} -C scite/gtk install DESTDIR="$DESTDIR"
vlicense scite/License.txt LICENSE.scite
vlicense scintilla/License.txt LICENSE.scintilla
ln -sf SciTE $DESTDIR/usr/bin/scite
}