39 lines
1.2 KiB
Bash
39 lines
1.2 KiB
Bash
# Template file for 'scite'
|
|
pkgname=scite
|
|
version=5.5.3
|
|
revision=1
|
|
create_wrksrc=yes
|
|
hostmakedepends="pkg-config"
|
|
makedepends="gtk+3-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=32d5f2f1ae0ccdd24ff117faa2d73e66ef8a7d84899e69977c14bc4550416ce6
|
|
|
|
post_extract() {
|
|
sed -i '1i#include <cstddef>' scite/src/StringList.h
|
|
sed -i 's/gthread-2.0/& lua/' scite/gtk/makefile
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs} -C lexilla/src \
|
|
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
|
|
CC="$CC $LDFLAGS" CXX="$CXX $LDFLAGS" GTK3=1
|
|
make ${makejobs} -C scintilla/gtk \
|
|
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
|
|
CC="$CC $LDFLAGS" CXX="$CXX $LDFLAGS" GTK3=1
|
|
make ${makejobs} -C scite/gtk \
|
|
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" \
|
|
CC="$CC $LDFLAGS" CXX="$CXX $LDFLAGS" \
|
|
LUA_CORE_OBJS= LUA_LIB_OBJS= GTK3=1
|
|
}
|
|
|
|
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
|
|
}
|