# Maintainer: ponsfoot # Contributor: Gaetan Bisson # Contributor: damir pkgname=uim-debian pkgver=1.8.6+gh20180301.c79432c _debrel=1 pkgrel=1 pkgdesc='Multilingual input method library with Debian patches (supports gtk3 and qt5)' url='https://packages.debian.org/sid/uim' license=('custom:BSD') arch=('i686' 'x86_64') depends=('libxft' 'libedit' 'm17n-lib') makedepends=('intltool' 'gettext' 'gtk2' 'gtk3' 'qt4' 'qt5-base' 'qt5-x11extras' 'anthy') optdepends=('qt4: immodule and helper applications' 'qt5-base: immodule and helper applications' 'gtk2: immodule and helper applications' 'gtk3: immodule and helper applications') conflicts=('uim') provides=('uim') install=${pkgname}.install source=("http://http.debian.net/debian/pool/main/u/uim/uim_${pkgver}.orig.tar.gz" "http://http.debian.net/debian/pool/main/u/uim/uim_${pkgver}-${_debrel}.debian.tar.xz" qt5-qt4-coexist.patch) sha256sums=('0c418ece1b0929a11d2922fdaa63aedca5990eb2e98f1f4fdff1b7693b0b5be8' '9d765a265c6e32ffab3d142c3ca39e62799af21bdf7f4a798e61a28ee3ecfdc8' 'a3511837b8fc827e3ff79defff6480fc6b3a4ac031bde478bfd5d6c1b77acfdd') prepare() { cd "${srcdir}/uim-${pkgver}" while read p; do patch -p1 -i "${srcdir}/debian/patches/${p}" done < "${srcdir}/debian/patches/series" patch -p1 -i "${srcdir}/qt5-qt4-coexist.patch" } build() { cd "${srcdir}/uim-${pkgver}" export QT_SELECT=qt5 ./configure \ --disable-rpath \ --prefix=/usr \ --libexecdir=/usr/lib/uim \ --with-anthy-utf8 \ --with-gtk \ --with-gtk3 \ --with-qt4 \ --with-qt4-immodule \ --with-qt5 \ --with-qt5-immodule make } package() { cd "${srcdir}/uim-${pkgver}" make DESTDIR="${pkgdir}" install -j1 # FS#41112 install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" install -Dm644 "${srcdir}/debian/copyright" \ "${pkgdir}/usr/share/licenses/${pkgname}/debian/copyright" }