opt/scite/Pkgfile

32 lines
914 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Editor based on the Scintilla editing component
# URL: http://www.scintilla.org/
2008-07-11 09:29:19 +02:00
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
2006-02-23 16:26:10 +01:00
# Depends on: gtk
name=scite
2010-06-01 11:47:52 +02:00
version=2.12
2006-02-23 16:26:10 +01:00
release=1
2010-06-01 11:47:52 +02:00
source=(http://dl.sourceforge.net/sourceforge/scintilla/$name${version/./}.tgz)
2006-02-23 16:26:10 +01:00
build () {
cd scintilla/gtk
2007-04-01 11:45:11 +02:00
sed -i "s/-Os/$CXXFLAGS/" makefile
2010-04-08 11:32:20 +02:00
make
2006-08-23 11:37:35 +02:00
2006-02-23 16:26:10 +01:00
cd $SRC/$name/gtk
2007-04-01 11:45:11 +02:00
sed -i "s/-Os/$CXXFLAGS/" makefile
2010-04-08 11:32:20 +02:00
make prefix=/usr
2009-04-29 16:05:58 +02:00
make DESTDIR=$PKG install
2008-10-20 17:07:10 +02:00
2006-02-23 16:26:10 +01:00
sed -i '/^#buffers/s/#//
/^#save.recent/s/#//
/^#tabbar.hide.one/s/#//' \
$PKG/usr/share/scite/SciTEGlobal.properties
2007-04-01 11:45:11 +02:00
chmod -x $PKG/usr/share/{applications,scite}/*
2008-10-20 17:07:10 +02:00
sed -ri '/\[.+\]=/d' $PKG/usr/share/applications/*.desktop
2007-04-01 11:45:11 +02:00
rm -r $PKG/usr/share/scite/*.html
2006-02-23 16:26:10 +01:00
install -D -m 644 ../doc/scite.1 $PKG/usr/man/man1/scite.1
ln -s SciTE $PKG/usr/bin/scite
}