diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/scite/PKGBUILD |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/scite/PKGBUILD')
-rw-r--r-- | community/scite/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/community/scite/PKGBUILD b/community/scite/PKGBUILD new file mode 100644 index 000000000..9d87ac108 --- /dev/null +++ b/community/scite/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Thomas S Hatch <thatch45@gmail.com> +# Contributor: Corrado 'bardo' Primier <corrado.primier@mail.polimi.it> +# Contributor: Jochem Kossen <j.kossen@home.nl> +# Contributor: Daniel J Griffiths <ghost1227@archlinux.us> + +pkgname=scite +pkgver=2.24 +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') +backup=(usr/share/scite/SciTEGlobal.properties) +install=scite.install +source=("http://downloads.sourceforge.net/sourceforge/scintilla/${pkgname}${pkgver/\./}.tgz" + 'SciTE.desktop' + 'makefile.patch') +md5sums=('f180cc1045e245dc0e55d3a764bd5968' + '48526532ef677982a4b156ae90f25b6f' + '87005d4c7262a1a698cde0628dc7e2a2') + + +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 + + 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 +} |