# Maintainer: taotieren pkgname=poedit-git pkgver=3.4.1.r9.g1c1f3361d pkgrel=1 epoch= pkgdesc="Translations editor for Mac, Windows and Unix" arch=('x86_64') url="https://github.com/vslavik/poedit" license=('MIT') groups=() depends=(aspell cld2 cpprestsdk expat gettext gtkspell3 hunspell nlohmann-json lucene++ pugixml wxwidgets-gtk3 webkit2gtk) makedepends=(automake ccache boost git icu libjpeg-turbo libnotify libsecret zlib) checkdepends=() optdepends=() provides=(${pkgname%-git}) conflicts=(${pkgname%-git}) replaces=() backup=() options=() install= changelog= source=("${pkgname}::git+${url}.git") noextract=() sha256sums=('SKIP') #validpgpkeys=() pkgver() { cd "${srcdir}/${pkgname}" git describe --long --tags | sed 's/^v//g;s/.oss//g;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "${srcdir}/${pkgname}" ./bootstrap ./configure --prefix=/usr \ --libexecdir=/usr/lib/poedit \ --with-gtk=3 \ --without-opengl \ --with-sdl \ --enable-webview \ --with-cxx=14 \ --enable-stl make CPPFLAGS+=' -DUCHAR_TYPE=uint16_t' } package() { cd "${srcdir}/${pkgname}" make DESTDIR="${pkgdir}" install install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE }