# Description: Editor based on the Scintilla editing component # URL: https://www.scintilla.org/ # Maintainer: Juergen Daubert, jue at crux dot nu # Depends on: gtk3 name=scite version=5.3.0 release=1 source=(https://downloads.sourceforge.net/project/scintilla/SciTE/$version/$name${version//./}.tgz) build () { export GTK3=1 sed 's/-Os//' -i {lexilla/src,scintilla/gtk,scite/gtk}/makefile make -C lexilla/src make -C scintilla/gtk cd scite/gtk make prefix=/usr make DESTDIR=$PKG install sed -i '/^#buffers/s/#// /^#save.recent/s/#// /^#tabbar.hide.one/s/#//' \ $PKG/usr/share/scite/SciTEGlobal.properties chmod -x $PKG/usr/share/{applications,scite}/* sed -ri '/\[.+\]=/d' $PKG/usr/share/applications/*.desktop rm -r $PKG/usr/share/scite/*.html install -D -m 644 ../doc/scite.1 $PKG/usr/share/man/man1/scite.1 ln -s SciTE $PKG/usr/bin/scite }