summaryrefslogtreecommitdiff
path: root/community/scite/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2012-01-08 15:15:36 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2012-01-08 15:15:36 -0300
commit79836a031d6d4c48982b4cbffb40bf6bf09b3798 (patch)
treee6092df6df7e313d6637c35645bd2b1d174930bd /community/scite/PKGBUILD
parent38e55a4f9ca44d32cc497abdafe5bcd4df23704b (diff)
parent6aeb515f4afd10afb53b21df18d03b0d5f3a200f (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/ruby-gtk2/PKGBUILD community/scite/PKGBUILD extra/pulseaudio/PKGBUILD multilib/lib32-libsamplerate/PKGBUILD staging/kdelibs/PKGBUILD
Diffstat (limited to 'community/scite/PKGBUILD')
-rw-r--r--community/scite/PKGBUILD44
1 files changed, 26 insertions, 18 deletions
diff --git a/community/scite/PKGBUILD b/community/scite/PKGBUILD
index 37808bbfe..2b9d1321f 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.'
+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=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: