ktexteditor: try to update syntaxex versioning

This commit is contained in:
Chaoting Liu 2016-09-18 12:11:53 +01:00
parent e5d79e7a1f
commit 02cc626d6f
2 changed files with 25 additions and 8 deletions

View File

@ -3,7 +3,7 @@ source ../frameworks.conf
pkgname=ktexteditor
pkgver=${KFVersion}
pkgrel=2
pkgrel=3
pkgdesc='Advanced embeddable text editor'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/ktexteditor'
@ -13,15 +13,18 @@ makedepends=("extra-cmake-modules>=${KFECMVersion}")
groups=('kf5')
options=("debug")
source=("${KFServer}/${pkgname}-${pkgver}.tar.xz"
"git://anongit.kde.org/ktexteditor#branch=master" # We only need the syntax upadates here
'pkgbuild-syntax-highlight.patch')
sha256sums=( $(getSum ${pkgname})
'e4973d3c64a28de67f6736ecba76b473817974f610513783de5cd4b9cf5f06f1')
'SKIP'
'3ac25ae5f7a4956ae7bed6e79607a4ab5021875fd198fe348a1712db71a25b96')
prepare() {
mkdir -p build
cd ${pkgname}-${pkgver}
patch -p0 -i "${srcdir}"/pkgbuild-syntax-highlight.patch
rm -rfv src/syntax/data
cp -rv ${srcdir}/${pkgname}/src/syntax/data src/syntax
patch -Np1 -i "${srcdir}"/pkgbuild-syntax-highlight.patch
}
build() {

View File

@ -1,11 +1,25 @@
--- src/syntax/data/bash.xml~ 2016-09-13 09:46:51.569245577 +0000
+++ src/syntax/data/bash.xml 2016-09-13 09:47:31.745637790 +0000
From 4f82f3349d20fb3f0740fe6b98425f67fd3d919e Mon Sep 17 00:00:00 2001
From: Chaoting Liu <brli@chakraos.org>
Date: Sun, 18 Sep 2016 12:01:00 +0100
Subject: [PATCH] pkgbuild-syntax-highlight
---
src/syntax/data/bash.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/syntax/data/bash.xml b/src/syntax/data/bash.xml
index dc47e04..e36013e 100644
--- a/src/syntax/data/bash.xml
+++ b/src/syntax/data/bash.xml
@@ -8,7 +8,7 @@
<!ENTITY noword "(?![\w$+-])"> <!-- no word, $, + or - following -->
<!ENTITY pathpart "([\w_@.&#37;*?+-]|\\ )"> <!-- valid character in a file name -->
]>
-<language name="Bash" version="2.19" kateversion="5.0" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;.bashrc;.bash_profile;.bash_login;.profile" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
+<language name="Bash" version="2.19" kateversion="5.0" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
-<language name="Bash" version="3" kateversion="5.0" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;*.nix;.bashrc;.bash_profile;.bash_login;.profile" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
+<language name="Bash" version="3" kateversion="5.0" section="Scripts" extensions="*.sh;*.bash;*.ebuild;*.eclass;*.nix;.bashrc;.bash_profile;.bash_login;.profile;PKGBUILD" mimetype="application/x-shellscript" casesensitive="1" author="Wilbert Berendsen (wilbert@kde.nl)" license="LGPL">
<!-- (c) 2004 by Wilbert Berendsen (wilbert@kde.nl)
Changes by Matthew Woehlke (mw_triad@users.sourceforge.net)
--
2.10.0