35 lines
1001 B
Bash
35 lines
1001 B
Bash
# Template file for 'scite'
|
|
pkgname=scite
|
|
version=4.4.4
|
|
revision=2
|
|
create_wrksrc=yes
|
|
hostmakedepends="pkg-config"
|
|
makedepends="gtk+-devel lua53-devel"
|
|
short_desc="SCIntilla based Text Editor"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="MIT"
|
|
homepage="https://www.scintilla.org/SciTEDownload.html"
|
|
distfiles="https://www.scintilla.org/scite${version//./}.tgz"
|
|
checksum=404b7bdf3da14bf9be23b27eaeeb27de865606544b0d54e37dde985e2db6f31d
|
|
|
|
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
|
|
}
|