blob: 61fd279d61a7cbc405dc147363fa339095c9d484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $Id: PKGBUILD 59256 2011-11-22 03:57:15Z ebelanger $
# 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=3.0.1
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")
md5sums=('e2ed3190ebf714f037d05cde7b9591de')
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 "${srcdir}/scintilla/gtk"
make
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-scite"
install -D -m644 "${srcdir}/scintilla/License.txt" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-scintilla"
ln -sf SciTE ${pkgdir}/usr/bin/scite
}
|