# Contributor: VirtualTam # Contributor: Eugene Yudin aka Infy # Contributor: aksr # Maintainer: slbtty pkgname=goldendict-webengine-git pkgver=23.04.03.alpha.230409.c472b2cb.r9.ge32a7a2c pkgrel=1 pkgdesc="A feature-rich dictionary lookup program, supporting multiple dictionary formats." arch=('i686' 'x86_64') url="https://github.com/xiaoyifang/goldendict" license=('GPL3') depends=('ffmpeg' 'hunspell' 'libvorbis' 'libxtst' 'lzo' 'zlib' 'xz' 'libeb' 'opencc' 'qt5-svg' 'qt5-tools' 'qt5-x11extras' 'qt5-multimedia' 'qt5-webengine' 'qt5-speech') makedepends=('git') conflicts=('goldendict' 'goldendict-git' 'goldendict-svn' 'goldendict-git-opt') provides=('goldendict') replaces=('goldendict-svn' 'goldendict-git-opt') source=("$pkgname::git+https://github.com/xiaoyifang/goldendict.git") md5sums=('SKIP') pkgver() { cd "$srcdir/$pkgname" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { cd "$srcdir/$pkgname" # remove the default flag U_GLIBCXX_ASSERTIONS echo "QMAKE_CXXFLAGS += -U_GLIBCXX_ASSERTIONS" >> goldendict.pro } build(){ cd "$srcdir/$pkgname" qmake-qt5 "CONFIG+=release" "CONFIG+=zim_support" "CONFIG+=chinese_conversion_support" PREFIX="/usr" goldendict.pro make } package() { cd "$srcdir/$pkgname" make INSTALL_ROOT="$pkgdir" install }