Date: Thursday, June 13, 2013 @ 08:50:40
  Author: bisson
Revision: 188217

enable gtk3 and qt4 immodules, move optipng to when makedepends is installed

Modified:
  scim/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2013-06-13 06:07:09 UTC (rev 188216)
+++ PKGBUILD    2013-06-13 06:50:40 UTC (rev 188217)
@@ -5,30 +5,31 @@
 
 pkgname=scim
 pkgver=1.4.14
-pkgrel=3
+pkgrel=4
 pkgdesc='Input method user interface and development platform'
 url='http://www.scim-im.org/projects/scim'
 license=('LGPL')
-options=('!libtool')
 arch=('i686' 'x86_64')
 depends=('libltdl' 'gtk2')
-makedepends=('intltool' 'optipng')
-backup=('etc/scim/config' 'etc/scim/global')
+optdepends=('qt4: qt4 immodule'
+            'gtk3: gtk3 immodule')
+makedepends=('intltool' 'qt4' 'gtk3' 'optipng')
 
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz";)
 sha1sums=('73391be371dd7ef9f9af8b3a211e2bedec0cf71b')
 
+backup=('etc/scim/config' 'etc/scim/global')
+options=('!libtool')
 install=install
 
-prepare() {
-       find -name '*.png' -exec optipng -quiet -force -fix {} +
-}
-
 build() {
        cd "${srcdir}/${pkgname}-${pkgver}"
+       find -name '*.png' -exec optipng -quiet -force -fix {} +
        ./configure \
                --prefix=/usr \
                --sysconfdir=/etc \
                --disable-static \
+               --with-qt4-moc=/usr/bin/moc-qt4 \
+               --with-gtk-version=2 # no gtk3 support in scim-anthy
 
        make
 }

Reply via email to