Package Details: universalindentgui-svn r1077-1

Git Clone URL: https://aur.archlinux.org/universalindentgui-svn.git (read-only)
Package Base: universalindentgui-svn
Description: A GUI for GNU Indent, Uncrustify, Artistic Styler, PHP Stylist, Ruby Beautify, HTML Tidy and many other
Upstream URL: http://universalindent.sourceforge.net
Licenses: GPL
Conflicts: universalindentgui
Provides: universalindentgui
Submitter: Schnouki
Maintainer: fenugrec
Last Packager: fenugrec
Votes: 11
Popularity: 0.182508
First Submitted: 2008-12-16 15:36
Last Updated: 2017-04-29 01:42

Dependencies (10)

Required by (0)

Sources (6)

Latest Comments

fenugrec commented on 2017-04-29 01:45

@6ng4n : thanks. For some reason I wasn't able to apply your patch (git-apply complains about some malformed lines due to single quotes !??), so I just re-entered it manually. For some reason the hash for qscintilla.patch isn't the same as for yours, but the result is fine.
I also fixed a typo in the list of dependencies ("indent" instead of "ident").

6ng4n commented on 2017-04-28 15:03

@fenugrec I prepared a patch which solves the compiling issue. You can use this patch on your PKGBUILD.

From 2e3104b2b477e39b87f3d1d54ec7206af8ea3585 Mon Sep 17 00:00:00 2001
From: Ongun Kanat <ongun.kanat@gmail.com>
Date: Fri, 28 Apr 2017 17:58:06 +0300
Subject: qtscintilla library name issue solved


diff --git a/PKGBUILD b/PKGBUILD
index 03f860f..8351a01 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ arch=('i686' 'x86_64')
license=('GPL')
provides=('universalindentgui')
conflicts=('universalindentgui')
-depends=('qt4' 'qscintilla')
+depends=('qt4' 'qscintilla-qt4')
makedepends=('subversion')
optdepends=(
'astyle: a free, fast and small automatic formatter for C, C++, C# and Java',
@@ -28,24 +28,27 @@ source=("$_svnmod::svn://svn.code.sf.net/p/universalindent/code/trunk"
"universalindentgui.png"
"noupdatecheck.patch"
"fix_about_dialog.patch"
+ "qscintilla.patch"
)

sha256sums=('SKIP'
'e6ed8674345d76c1f3e5ab4d6f23b64bfa7ba77141436ff325d72a28cb672a06'
'cc01fcc94cc2067e499b15189a2ac56a901562218951bd77650cf8f81bcf440d'
'b5b4d6b5604fbaaa8578a97e3a59c709bb0e1861ffaae1add3ca4452c76b5686'
- '254e237064e8422b4d219fadfaa8486a5a69b3561b8aa81df8faf3c13272e7c5')
+ '254e237064e8422b4d219fadfaa8486a5a69b3561b8aa81df8faf3c13272e7c5'
+ '2774424b610413fee8b27e883c1a3ebcc18fce3001f775b17d10e5d33058ae6d')

prepare() {
cd ${srcdir}
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up)
fi
-
+
cd "$srcdir/$_svnmod"
#patch -Np1 -i ../../no-strip.patch src/UniversalIndentGUI.pro #disable QT stripping
patch -p1 -i ../noupdatecheck.patch
patch -p1 -i ../fix_about_dialog.patch
+ patch -p1 -i ../qscintilla.patch
}

pkgver() {
diff --git a/qscintilla.patch b/qscintilla.patch
new file mode 100644
index 0000000..fd71c32
--- /dev/null
+++ b/qscintilla.patch
@@ -0,0 +1,12 @@
+--- a/UniversalIndentGUI.pro
++++ b/UniversalIndentGUI.pro
+@@ -23,7 +23,7 @@
+ ICON = resources/UniversalIndentGUI.icns
+ }
+ else {
+- LIBS += -lqscintilla2
++ LIBS += -lqscintilla2_qt4
+ }
+
+ CONFIG(release, debug|release) {
+

fenugrec commented on 2017-04-17 22:59

@krupan : I won't be able to test this for a few days, but could you try this:
(I don't recommend your "ln -s" solution)

1- edit PKGBUILD to replace "qscintilla" with "qscintilla-qt4"
2- run "makepkg --nobuild"
3- edit the newly extracted src/UniversalIndentGUI.pro file to modify this line:
"LIBS += -lqscintilla2"
to
"LIBS += -lqscintilla2_qt4"

4- "makepkg -e" to resume building.

krupan commented on 2017-04-17 21:51

I'm getting this error when I try to build this package:

/usr/bin/ld: cannot find -lqscintilla2

I did this to work around it, but it doesn't feel like the correct solution:

cd /usr/lib
sudo ln -s libqscintilla2_qt4.so libqscintilla2.so