mirror of
https://github.com/arcan1s/pkgbuild.git
synced 2025-07-24 02:19:57 +00:00
Edited PKGBUILDs
This commit is contained in:
@ -1,41 +1,41 @@
|
||||
# Maintainer: Jared Sutton <jpsutton@gmail.com>
|
||||
# Maintainer: Evgeniy Alekseev <esalexeev@gmail.com>
|
||||
|
||||
pkgname=qscite
|
||||
pkgver=0.5_svn211
|
||||
_pkgrev=211
|
||||
pkgrel=2
|
||||
pkgdesc="A code editor written in C++ and Qt4; A clone of SciTE."
|
||||
pkgdesc="A code editor written in C++ and Qt4; A clone of SciTE"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://qscite.googlecode.com/"
|
||||
license=('GPL')
|
||||
depends=('qt4')
|
||||
source=(http://qscite.googlecode.com/files/${pkgname}-r${_pkgrev}.tar.gz)
|
||||
md5sums=('2ce7a915e5560725d897816688a4bef7')
|
||||
source=(http://qscite.googlecode.com/files/${pkgname}-r${_pkgrev}.tar.gz
|
||||
get_qsci.sh.patch
|
||||
qscite.pro.patch)
|
||||
md5sums=('2ce7a915e5560725d897816688a4bef7'
|
||||
'0bb49a6179912d6d0b674c5623a45a34'
|
||||
'c13cc624b2ed1ce7a980afbb2d2bbc15')
|
||||
|
||||
prepare()
|
||||
{
|
||||
# FIXME: Achtung!
|
||||
# fix scintilla2 download path
|
||||
sed -i "s;\"http://www.riverbankcomputing.co.uk\$_download_path\";\
|
||||
\`echo \$_download_path | sed \"s#http://#http://optimate.dl.#\"\
|
||||
| sed \"s#projects/pyqt/files#project/pyqt#\"\`;" ${srcdir}/${pkgname}/get_qsci.sh
|
||||
# fix filepath
|
||||
sed -i "s:QScintilla2/Qt4:QScintilla2/Qt4Qt5:" ${srcdir}/${pkgname}/qscite.pro
|
||||
# fix version
|
||||
sed -i "s:0.5-svn190:${pkgver}:" ${srcdir}/${pkgname}/qscite.desktop
|
||||
cd ${srcdir}/${pkgname}
|
||||
# fix scintilla2 download path
|
||||
patch -p0 < ${srcdir}/get_qsci.sh.patch
|
||||
# add install section and fix filepath
|
||||
patch -p0 < ${srcdir}/qscite.pro.patch
|
||||
# fix version
|
||||
sed -i "s#0.5-svn190#${pkgver}#" qscite.desktop
|
||||
}
|
||||
|
||||
build()
|
||||
build()
|
||||
{
|
||||
cd ${srcdir}/${pkgname}
|
||||
qmake-qt4 qscite-release.pro || return 1
|
||||
qmake-qt4 PREFIX=/usr -Wnone qscite-release.pro || return 1
|
||||
make || return 1
|
||||
}
|
||||
|
||||
package()
|
||||
{
|
||||
# makefile haven't install section
|
||||
install -D -m755 ${srcdir}/${pkgname}/build/${pkgname}-release ${pkgdir}/usr/bin/${pkgname}
|
||||
install -D -m644 ${srcdir}/${pkgname}/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
|
||||
cd ${srcdir}/${pkgname}
|
||||
make INSTALL_ROOT=${pkgdir} install || return 1
|
||||
}
|
||||
|
11
qscite/get_qsci.sh.patch
Normal file
11
qscite/get_qsci.sh.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- get_qsci.sh.old 2011-03-22 15:20:40.000000000 +0300
|
||||
+++ get_qsci.sh 2013-09-17 01:46:11.755695009 +0400
|
||||
@@ -6,7 +6,7 @@
|
||||
/snapshot/ {next}
|
||||
/tar\.gz/ { print $2 }
|
||||
' )
|
||||
-_download_link="http://www.riverbankcomputing.co.uk$_download_path"
|
||||
+_download_link=`echo $_download_path | sed "s#http://#http://optimate.dl.#" | sed "s#projects/pyqt/files#project/pyqt#"`
|
||||
_archive_filename=$( basename "$_download_path" )
|
||||
_archive_dir=$( echo "$_archive_filename" | sed 's/.tar.gz//' )
|
||||
_archive_size=$(
|
38
qscite/qscite.pro.patch
Normal file
38
qscite/qscite.pro.patch
Normal file
@ -0,0 +1,38 @@
|
||||
--- qscite.pro.old 2011-03-22 15:20:40.000000000 +0300
|
||||
+++ qscite.pro 2013-09-17 02:36:51.998947959 +0400
|
||||
@@ -13,14 +13,14 @@
|
||||
}
|
||||
|
||||
unix {
|
||||
- qsci_project.target = QScintilla2/Qt4/qscintilla.pro
|
||||
+ qsci_project.target = QScintilla2/Qt4Qt5/qscintilla.pro
|
||||
qsci_project.commands = ./get_qsci.sh
|
||||
|
||||
qsci_lib.target = $$OBJECTS_DIR/libqscintilla2.a
|
||||
- qsci_lib.commands = cd QScintilla2/Qt4 &&
|
||||
+ qsci_lib.commands = cd QScintilla2/Qt4Qt5 &&
|
||||
qsci_lib.commands += $(QMAKE) -after \"CONFIG += static\" qscintilla.pro &&
|
||||
qsci_lib.commands += $(MAKE) &&
|
||||
- qsci_lib.commands += cd ../.. && cp QScintilla2/Qt4/libqscintilla2.a $(OBJECTS_DIR)
|
||||
+ qsci_lib.commands += cd ../.. && cp QScintilla2/Qt4Qt5/libqscintilla2.a $(OBJECTS_DIR)
|
||||
qsci_lib.depends = qsci_project
|
||||
|
||||
QMAKE_EXTRA_TARGETS += qsci_project qsci_lib
|
||||
@@ -68,11 +68,16 @@
|
||||
unix {
|
||||
HEADERS += qterminal_pty.h
|
||||
SOURCES += qterminal_pty.cpp
|
||||
- INCLUDEPATH += QScintilla2/Qt4
|
||||
+ INCLUDEPATH += QScintilla2/Qt4Qt5
|
||||
LIBS += build/libqscintilla2.a
|
||||
!macx {
|
||||
LIBS += -lutil
|
||||
DEFINES += QSCITE_MONO_FAMILY='\\"Monospace\\"'
|
||||
+ TARGET = qscite
|
||||
+ target.path = $$PREFIX/bin/
|
||||
+ desktopfile.files = qscite.desktop
|
||||
+ desktopfile.path = $$PREFIX/share/applications/
|
||||
+ INSTALLS += target desktopfile
|
||||
} else {
|
||||
TARGET = QSciTE
|
||||
DEFINES += QSCITE_MONO_FAMILY='\\"Monaco\\"'
|
Reference in New Issue
Block a user