summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0d2455d58e36d68c39b5429d9b3be1cf2d3b242 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: LinRs <20455421+LinRs AT users.noreply.github.com>
# Contributor: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
# Contributor:  VirtualTam <virtualtam@flibidi.net>
# Contributor: Eugene Yudin aka Infy <Eugene dot Yudin at gmail dot com>

pkgname=goldendict-qt5-git
pkgver=1.5.0.RC2.369.gade20fc1
pkgrel=1
pkgdesc="Feature-rich dictionary lookup program"
arch=('x86_64')
url="https://goldendict.org/"
license=('GPL3')
depends=('ffmpeg' 'hunspell' 'libao' 'qt5-multimedia' 'qt5-svg' 
'qt5-tools' 'qt5-webkit' 'qt5-x11extras' 'opencc' 'eb-library')
makedepends=('git') 
conflicts=('goldendict')
provides=('stardict')
replaces=('goldendict')
_gitname="goldendict"
source=("${_gitname}::git+https://github.com/goldendict/goldendict.git")
sha256sums=(SKIP)

pkgver() {
  cd ${_gitname}
  git describe --long --tags | sed 's|-|.|g'
}

build(){
  cd ${_gitname}
  # add zim and opencc support for default. 
  PREFIX="/usr" qmake-qt5 "CONFIG+=zim_support" "CONFIG+=chinese_conversion_support"
  make
}

package() {
  cd ${_gitname}
  make INSTALL_ROOT="${pkgdir}" install
}
# vim:set ts=2 sw=2 et: