blob: 2ed239f0bcd10b648261831024a9ff94a6001629 (
plain)
1 # Description: Editor based on the Scintilla editing component
2 # URL: https://www.scintilla.org/
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Depends on: gtk3
5
6 name=scite
7 version=5.0.3
8 release=1
9 source=(https://downloads.sourceforge.net/project/scintilla/SciTE/$version/$name${version//./}.tgz)
10
11 build () {
12 export GTK3=1
13
14 sed 's/-Os//' -i {lexilla/src,scintilla/gtk,scite/gtk}/makefile
15
16 make -C lexilla/src
17 make -C scintilla/gtk
18
19 cd scite/gtk
20 make prefix=/usr
21 make DESTDIR=$PKG install
22
23 sed -i '/^#buffers/s/#//
24 /^#save.recent/s/#//
25 /^#tabbar.hide.one/s/#//' \
26 $PKG/usr/share/scite/SciTEGlobal.properties
27
28 chmod -x $PKG/usr/share/{applications,scite}/*
29 sed -ri '/\[.+\]=/d' $PKG/usr/share/applications/*.desktop
30 rm -r $PKG/usr/share/scite/*.html
31 install -D -m 644 ../doc/scite.1 $PKG/usr/share/man/man1/scite.1
32 ln -s SciTE $PKG/usr/bin/scite
33 }
|