desktop/goldendict/PKGBUILD

37 lines
950 B
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
2017-03-12 21:05:28 +08:00
pkgrel=8
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')
2012-07-19 23:17:15 +08:00
url="http://goldendict.berlios.de/"
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')
2017-02-02 08:02:02 +08:00
source=($pkgname-$pkgver.tar.gz::https://github.com/goldendict/goldendict/archive/1.5.0-RC2.tar.gz)
sha256sums=('bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde')
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
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
}