# $Id: PKGBUILD 103181 2013-12-28 19:39:48Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Thomas S Hatch # Contributor: Corrado 'bardo' Primier # Contributor: Jochem Kossen # Contributor: Daniel J Griffiths pkgname=scite pkgver=3.3.7 pkgrel=1 pkgdesc='Editor with facilities for building and running programs' arch=('x86_64' 'i686') 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=('ad094de779572a5c1bb0f2c590acc05a8706fc2f8c8e9ba7d4d98182bb37f174') prepare() { 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 \ "-Wno-missing-braces -Wno-char-subscripts ${CXXFLAGS} -DGTK -DSCI_LEXER \$(INCLUDEDIRS)" } build() { make -C "scintilla/gtk" make -C "$pkgname/gtk" } package() { cd "$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: