Advertisement
hyslion

Gcin PKGBUILD(fix qt5)

Mar 4th, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. # $Id: PKGBUILD 229512 2015-01-18 07:06:27Z bisson $
  2. # Maintainer: Gaetan Bisson <bisson@archlinux.org>
  3. # Contributor: Andreas Radke <andyrtr@archlinux.org>
  4. # Contributor: damir <damir@archlinux.org>
  5.  
  6. pkgname=gcin
  7. pkgver=2.8.3
  8. pkgrel=1
  9. pkgdesc='Input method server supporting various input methods'
  10. url='http://hyperrate.com/dir.php?eid=67'
  11. license=('LGPL')
  12. arch=('i686' 'x86_64')
  13. depends=('gtk2' 'libxtst')
  14. makedepends=('qt5-base' 'qt4' 'gtk3' 'anthy' 'libchewing')
  15. optdepends=('qt5-base: support for qt5 input method'
  16. 'qt4: support for qt4 input method'
  17. 'gtk3: support for gtk3 input method'
  18. 'anthy: support for anthy input method'
  19. 'libchewing: support for chewing input method')
  20. source=("http://hyperrate.com/gcin-source/${pkgname}-${pkgver}.tar.xz")
  21. sha1sums=('95b980f7cf9dc2ad91803113cdbb4ac831f056de')
  22.  
  23. install=install
  24.  
  25. prepare() {
  26. cd "${srcdir}/${pkgname}-${pkgver}"
  27. sed 's:qt5/QtGui/5.2.1:qt/QtGui/5.4.1:g' -i qt5-im/Makefile
  28. sed 's:QT=qt5:QT=qt:' -i qt5-im/Makefile
  29. sed 's/lib64/lib/g' -i configure
  30. sed '/include suffixes-rule/a \
  31. CFLAGS+='"${CFLAGS}"' \
  32. LDFLAGS+='"${LDFLAGS}"' \
  33. OPTFLAGS=' \
  34. -i Makefile
  35. }
  36.  
  37. build() {
  38. cd "${srcdir}/${pkgname}-${pkgver}"
  39. ./configure --prefix=/usr --use_i18n=Y
  40. make
  41. }
  42.  
  43. package() {
  44. cd "${srcdir}/${pkgname}-${pkgver}"
  45. make DESTDIR="${pkgdir}" install
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement