mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 02:57:14 +08:00
51 lines
1.9 KiB
Bash
51 lines
1.9 KiB
Bash
# $Id: PKGBUILD 46926 2009-07-22 04:56:17Z pierre $
|
|
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
|
|
# Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
|
|
# Contributor: Michal Krenek <mikos@sg1.cz>
|
|
# Contributor: DaNiMoTh <jjdanimoth.aur@gmail.com>
|
|
|
|
pkgname=qscintilla
|
|
pkgver=2.4.3
|
|
pkgrel=1
|
|
license=('GPL')
|
|
pkgdesc="A port to Qt4 of Neil Hodgson's Scintilla C++ editor class"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.riverbankcomputing.co.uk/software/qscintilla/intro"
|
|
depends=('qt')
|
|
provides=('qscintilla2')
|
|
conflicts=('qscintilla2')
|
|
replaces=('qscintilla2')
|
|
source=("http://riverbankcomputing.com/static/Downloads/QScintilla2/QScintilla-gpl-${pkgver}.tar.gz")
|
|
md5sums=('b1c83d42398493bedb22f4df1868627d')
|
|
|
|
build() {
|
|
cd $srcdir/QScintilla-gpl-$pkgver/Qt4
|
|
sed -i "s|header.path = .*|header.path = $pkgdir/usr/include|g" qscintilla.pro
|
|
sed -i "s|trans.path = .*|trans.path = $pkgdir/usr/share/qt/translations|g" qscintilla.pro
|
|
sed -i "s|qsci.path = .*|qsci.path = $pkgdir/usr/share/qt/translations|g" qscintilla.pro
|
|
|
|
qmake qscintilla.pro
|
|
sed -i 's|$(MOVE) $(TARGET)|$(COPY) $(TARGET)|g' Makefile
|
|
make DESTDIR=${pkgdir} || return 1
|
|
|
|
# Qt4 designer qscintilla2 plugin
|
|
cd ../designer-Qt4
|
|
install -d ${pkgdir}/usr/lib/qt/plugins/designer
|
|
echo "INCPATH += ../Qt4" >> designer.pro
|
|
sed -i "s|LIBS.*|LIBS += -L../Qt4 -lqscintilla2|g" designer.pro
|
|
qmake designer.pro
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/QScintilla-gpl-${pkgver}/Qt4
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
cp libqscintilla2.so.5.3.0 ${pkgdir}/usr/lib/ || return 1
|
|
ln -s libqscintilla2.so.5.3.0 ${pkgdir}/usr/lib/libqscintilla2.so
|
|
ln -s libqscintilla2.so.5.3.0 ${pkgdir}/usr/lib/libqscintilla2.so.5
|
|
ln -s libqscintilla2.so.5.3.0 ${pkgdir}/usr/lib/libqscintilla2.so.5.3
|
|
|
|
cd ${srcdir}/QScintilla-gpl-${pkgver}/designer-Qt4
|
|
cp libqscintillaplugin.so ${pkgdir}/usr/lib/qt/plugins/designer/ || return 1
|
|
}
|