Source

aur / scite / PKGBUILD

# Maintainer: Taylor Venable <taylor@metasyntax.net>

pkgname='scite'
pkgver='3.2.2'
pkgrel=1
pkgdesc='A generally useful editor with facilities for building and running programs.'
arch=('i686' 'x86_64')
url='http://www.scintilla.org/SciTE.html'
license=('custom:scite')
depends=('desktop-file-utils' 'gtk2' 'glib2')
backup=('usr/share/scite/SciTEGlobal.properties')
install='scite.install'
source=("http://downloads.sourceforge.net/sourceforge/scintilla/${pkgname}${pkgver//\./}.tgz"
        'SciTE.desktop')
md5sums=('dec1f05fb5ae0f94cfa4470af2d2f3ae'
         '48526532ef677982a4b156ae90f25b6f')

build() {
  sed "s/CXXTFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS)/CXXTFLAGS=-DNDEBUG ${CXXFLAGS} $(CXXBASEFLAGS)/" -i scite/gtk/makefile

  sed "s/CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -pedantic -DGTK -DSCI_LEXER \$(INCLUDEDIRS)/CXXBASEFLAGS=-Wall -Wno-missing-braces -Wno-char-subscripts -pedantic ${CXXFLAGS} -DGTK -DSCI_LEXER \$(INCLUDEDIRS)/" -i scintilla/gtk/makefile

  sed "s/CXXFLAGS=-DNDEBUG -Os \$(CXXBASEFLAGS) \$(THREADFLAGS)/CXXFLAGS=-DNDEBUG ${CXXFLAGS} \$(CXXBASEFLAGS) \$(THREADFLAGS)/" -i scintilla/gtk/makefile

  cd scintilla/gtk
  make
  install -Dm644 ../License.txt \
    ${pkgdir}/usr/share/licenses/scintilla/LICENSE

  cd ${srcdir}/${pkgname}/gtk
  make
}

package() {
  cd ${srcdir}/${pkgname}/gtk

  make DESTDIR=${pkgdir} install

  install -D -m644 ../License.txt \
    ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE

  install -D -m644 ${srcdir}/SciTE.desktop \
    ${pkgdir}/usr/share/applications/

  ln -sf SciTE ${pkgdir}/usr/bin/scite
}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.