New package: scite-3.7.0

This commit is contained in:
Christian Neukirchen 2016-10-17 14:56:29 +02:00
parent d945133ff9
commit 24bd245613
1 changed files with 34 additions and 0 deletions

34
srcpkgs/scite/template Normal file
View File

@ -0,0 +1,34 @@
# Template file for 'scite'
pkgname=scite
version=3.7.0
revision=1
create_wrksrc=yes
hostmakedepends="pkg-config"
makedepends="gtk+-devel lua51-devel"
short_desc="SCIntilla based Text Editor"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="MIT"
homepage="http://www.scintilla.org/SciTEDownload.html"
distfiles="http://www.scintilla.org/scite${version//./}.tgz"
checksum=034dca55b58d8c3af554900956ea20ca25be6d5157b394ecc3a055788496753b
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
}