# $Id$ # Maintainer: Sergej Pupykin # Contributor: Andrea Scarpino # Contributor: Giovanni Scafora # Contributor: Alexander Fehr # Contributor: Daniel J Griffiths # Contributor: Martchus pkgname=poedit epoch=1 pkgver=2.0.2 pkgrel=3 pkgdesc="Cross-platform gettext catalogs (.po files) editor" arch=('i686' 'x86_64') url="http://www.poedit.net/" license=('MIT') # poedit-2.0: https://github.com/vslavik/poedit/issues/366 depends=('gtkspell3' 'lucene++' 'wxgtk3') makedepends=('boost') source=(https://github.com/vslavik/poedit/releases/download/v$pkgver-oss/poedit-${pkgver}.tar.gz icu59.patch poedit-2.0.2_revert_4b692e6_f98feb2_invoke-dde_line-switch.patch) sha256sums=('b88bc222d4215344d0eb87dda19aafcc0b2465718c4b556015330beb96f7b402' '4d2fcbc1ce5a8d8bab878687337c1f038ed1a83b37652e0a41d7f5c2b26b27bc' '252cba05bb9b035cfc85b32f768ad2b135dbe7e0b353bcd369f1bb1a3a7cd86f') prepare() { cd "${srcdir}/${pkgname}-${pkgver}" patch -Np1 -i ../icu59.patch patch -Np1 -i ../poedit-2.0.2_revert_4b692e6_f98feb2_invoke-dde_line-switch.patch } build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr --libexecdir=/usr/lib/poedit --with-wx-config=/usr/bin/wx-config-gtk3 make CPPFLAGS+=' -DUCHAR_TYPE=uint16_t' } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }