desktop/goldendict/PKGBUILD

46 lines
1.6 KiB
Bash
Raw Normal View History

2012-07-19 23:17:15 +08:00
pkgname=goldendict
2017-02-02 08:02:02 +08:00
pkgver=1.5.0rc2
pkgrel=9
2012-07-19 23:17:15 +08:00
pkgdesc="Feature-rich dictionary lookup program"
2013-02-02 07:15:37 +08:00
arch=('x86_64')
url="http://goldendict.org/"
2012-07-19 23:17:15 +08:00
license=('GPL3')
2017-02-02 08:02:02 +08:00
depends=('hunspell' 'libxtst' 'libzip' 'libao' 'qt5-webkit' 'qt5-svg'
'qt5-x11extras' 'qt5-tools' 'phonon-qt5' 'ffmpeg')
2012-07-19 23:17:15 +08:00
provides=('stardict')
source=($pkgname-$pkgver.tar.gz::https://github.com/goldendict/goldendict/archive/1.5.0-RC2.tar.gz
goldendict-ffmpeg4.patch::"https://github.com/goldendict/goldendict/commit/03bbe01b.patch"
qt511.patch::"https://github.com/goldendict/goldendict/commit/3d4a468.patch"
groupwidget.patch::"https://github.com/goldendict/goldendict/commit/a659678.patch")
sha256sums=('bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde'
'c09649081dff26b7a4eb5d6828a077089eaedf0d8cc392d5bb8232fc64e2537f'
'dbcd8f40c8a6d35bf00fdb80cd559e22068ea4a57633d3feed711babae8af8d4'
'628eeec6b50a1f027347f799c2b06e01300412b94452bd72a611b3735e62bb98')
2012-07-19 23:17:15 +08:00
2015-12-12 21:19:33 +08:00
prepare(){
2017-02-02 08:02:02 +08:00
cd "${srcdir}"/${pkgname}-1.5.0-RC2
patch -p1 -i ../goldendict-ffmpeg4.patch # Fix build with ffmpeg 4
patch -p1 -i ../qt511.patch # Fix build with Qt 5.11
patch -p1 -i ../groupwidget.patch # Another fox build with Qt 5.11
2015-12-12 21:19:33 +08:00
}
2012-07-19 23:17:15 +08:00
2015-12-12 21:19:33 +08:00
build(){
2017-02-02 08:02:02 +08:00
cd "${srcdir}"/${pkgname}-1.5.0-RC2
2012-07-19 23:17:15 +08:00
2017-02-02 08:02:02 +08:00
qmake-qt5 "CONFIG+=no_epwing_support" PREFIX="/usr"
2012-07-19 23:17:15 +08:00
make
}
package() {
2017-02-02 08:02:02 +08:00
cd "${srcdir}"/${pkgname}-1.5.0-RC2
2012-07-19 23:17:15 +08:00
2015-12-12 21:19:33 +08:00
make INSTALL_ROOT="${pkgdir}" install
2012-07-19 23:17:15 +08:00
2015-12-12 21:19:33 +08:00
# languages
install -d "${pkgdir}"/usr/share/$pkgname/locale
install -m644 locale/*.qm -t "${pkgdir}"/usr/share/$pkgname/locale
2012-07-19 23:17:15 +08:00
2015-12-12 21:19:33 +08:00
# removing unneeded
rm -rf "${pkgdir}"/usr/share/app-install
2017-02-02 08:02:02 +08:00
}