[arch-commits] Commit in gcin/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Jan 23 16:11:12 UTC 2017


    Date: Monday, January 23, 2017 @ 16:11:12
  Author: felixonmars
Revision: 287234

upgpkg: gcin 2.8.4-5

Qt 5.8 rebuild

Modified:
  gcin/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++++++--------------------
 1 file changed, 21 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-23 15:20:35 UTC (rev 287233)
+++ PKGBUILD	2017-01-23 16:11:12 UTC (rev 287234)
@@ -6,7 +6,7 @@
 
 pkgname=gcin
 pkgver=2.8.4
-pkgrel=4
+pkgrel=5
 pkgdesc='Input method server supporting various input methods'
 url='http://hyperrate.com/dir.php?eid=67'
 license=('LGPL')
@@ -19,7 +19,7 @@
             'anthy: support for anthy input method'
             'libchewing: support for chewing input method')
 source=("http://hyperrate.com/gcin-source/${pkgname}-${pkgver}.tar.xz"
-	    qt-5.5.patch)
+        qt-5.5.patch)
 sha1sums=('f422d58aecf65f1d674c79c5c5d346ae568d52d3'
           'fd29b91d7b573546ecb3a8cb0341d4f11364cd1a')
 
@@ -26,20 +26,21 @@
 install=install
 
 prepare() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	sed 's/lib64/lib/g' -i configure
-	sed '/include suffixes-rule/a \
-		CFLAGS+='"${CFLAGS}"' \
-		LDFLAGS+='"${LDFLAGS}"' \
-		OPTFLAGS=' \
-		-i Makefile
-	sed \
-		-e 's:usr/include/qt5:usr/include/qt:g' \
-		-e 's:QT=qt5:QT=qt:' \
-		-i qt5-im/Makefile
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    sed 's/lib64/lib/g' -i configure
+    sed '/include suffixes-rule/a \
+        CFLAGS+='"${CFLAGS}"' \
+        LDFLAGS+='"${LDFLAGS}"' \
+        OPTFLAGS=' \
+        -i Makefile
+    sed \
+        -e 's:usr/include/qt5:usr/include/qt:g' \
+        -e 's:QT=qt5:QT=qt:' \
+        -e '/^MODVERSION=/a INCS+=-I/usr/include/qt/QtGui/$(MODVERSION) -I/usr/include/qt/QtCore/$(MODVERSION)' \
+        -i qt5-im/Makefile
 
-	# FS#45732
-	patch -p1 -i ../qt-5.5.patch
+    # FS#45732
+    patch -p1 -i ../qt-5.5.patch
 
     # Qt 5.6 doesn't provide Qt5PlatformSupport.pc anymore
     sed -i 's/Qt5PlatformSupport//' qt5-im/Makefile
@@ -46,12 +47,12 @@
 }
 
 build() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	./configure --prefix=/usr --use_i18n=Y
-	make
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    ./configure --prefix=/usr --use_i18n=Y
+    make
 }
 
 package() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	make DESTDIR="${pkgdir}" install
+    cd "${srcdir}/${pkgname}-${pkgver}"
+    make DESTDIR="${pkgdir}" install
 }



More information about the arch-commits mailing list