# $Id: PKGBUILD 78867 2012-10-26 09:46:22Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Thomas S Hatch # Contributor: Corrado 'bardo' Primier # Contributor: Jochem Kossen # Contributor: Daniel J Griffiths pkgname=scite pkgver=3.2.3 pkgrel=1 pkgdesc='Editor with facilities for building and running programs' arch=('i686' 'x86_64' 'mips64el') url='http://www.scintilla.org/SciTE.html' license=('custom:scite') depends=('desktop-file-utils' 'gtk2') makedepends=('setconf') backup=('usr/share/scite/SciTEGlobal.properties') install=$pkgname.install source=("http://downloads.sourceforge.net/sourceforge/scintilla/${pkgname}${pkgver//./}.tgz") sha256sums=('d0d324a5e420ff96db6cd1c6eeac23b6f4c046e7545e73c4625ab2add90e4a65') build() { cd "$srcdir" if [ $?CXXBASEFLAGS == 1 ]; then sed '0,/CXXTFLAGS=/s//nop=/' -i scite/gtk/makefile setconf scite/gtk/makefile CXXTFLAGS "-DNDEBUG ${CXXFLAGS} $(CXXBASEFLAGS)" fi sed '0,/CXXFLAGS=/s//nop=/' -i scintilla/gtk/makefile setconf scintilla/gtk/makefile CXXFLAGS "-DNDEBUG ${CXXFLAGS} \$(CXXBASEFLAGS) \$(THREADFLAGS)" setconf scintilla/gtk/makefile CXXBASEFLAGS "-Wall -Wno-missing-braces -Wno-char-subscripts -pedantic ${CXXFLAGS} -DGTK -DSCI_LEXER \$(INCLUDEDIRS)" cd "$srcdir/scintilla/gtk" make cd "$srcdir/$pkgname/gtk" make } package() { cd "$srcdir/$pkgname/gtk" make DESTDIR="$pkgdir" install install -Dm644 "$srcdir/$pkgname/License.txt" \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE-scite" install -Dm644 "$srcdir/scintilla/License.txt" \ "$pkgdir/usr/share/licenses/$pkgname/LICENSE-scintilla" ln -sf SciTE "$pkgdir/usr/bin/scite" } # vim:set ts=2 sw=2 et: