summaryrefslogtreecommitdiff
path: root/community/scite
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-07 23:14:43 +0000
committerroot <root@rshg054.dnsready.net>2012-01-07 23:14:43 +0000
commit6aeb515f4afd10afb53b21df18d03b0d5f3a200f (patch)
tree531fd1ff51f0ee474a0bbaeb5cb1de852f6096dd /community/scite
parentd7931e8fa49a4698ac8dbb1a155ca6b48f031828 (diff)
Sat Jan 7 23:14:43 UTC 2012
Diffstat (limited to 'community/scite')
-rw-r--r--community/scite/PKGBUILD46
1 files changed, 27 insertions, 19 deletions
diff --git a/community/scite/PKGBUILD b/community/scite/PKGBUILD
index 61fd279d6..1a48fee56 100644
--- a/community/scite/PKGBUILD
+++ b/community/scite/PKGBUILD
@@ -1,45 +1,53 @@
-# $Id: PKGBUILD 59256 2011-11-22 03:57:15Z ebelanger $
-# Maintainer: Thomas S Hatch <thatch45@gmail.com>
+# $Id: PKGBUILD 61725 2012-01-07 01:42:13Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: 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
+pkgver=3.0.2
pkgrel=1
-pkgdesc='A generally useful editor with facilities for building and running programs.'
-arch=('i686' 'x86_64')
+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=scite.install
source=("http://downloads.sourceforge.net/sourceforge/scintilla/${pkgname}${pkgver//./}.tgz")
-md5sums=('e2ed3190ebf714f037d05cde7b9591de')
+sha256sums=('a5687faaa201c39a4ec9608e8a77e418e259f525b21871a5c9f1282c62e58eaa')
build() {
- sed "s/CXXTFLAGS=-DNDEBUG -Os $(CXXBASEFLAGS)/CXXTFLAGS=-DNDEBUG ${CXXFLAGS} $(CXXBASEFLAGS)/" -i scite/gtk/makefile
+ cd "$srcdir"
- 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
+ if [ $?CXXBASEFLAGS == 1 ]; then
+ sed '0,/CXXTFLAGS=/s//nop=/' -i scite/gtk/makefile
+ setconf scite/gtk/makefile CXXTFLAGS "-DNDEBUG ${CXXFLAGS} $(CXXBASEFLAGS)"
+ fi
- sed "s/CXXFLAGS=-DNDEBUG -Os \$(CXXBASEFLAGS) \$(THREADFLAGS)/CXXFLAGS=-DNDEBUG ${CXXFLAGS} \$(CXXBASEFLAGS) \$(THREADFLAGS)/" -i scintilla/gtk/makefile
+ 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"
+ cd "$srcdir/scintilla/gtk"
make
- cd "${srcdir}/${pkgname}/gtk"
+ cd "$srcdir/$pkgname/gtk"
make
}
package() {
- cd "${srcdir}/${pkgname}/gtk"
+ cd "$srcdir/$pkgname/gtk"
- make DESTDIR="${pkgdir}" install
+ 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"
+ 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
+ ln -sf SciTE "$pkgdir/usr/bin/scite"
}
+
+# vim:set ts=2 sw=2 et: