blob: da08082cde74dc249828161cc4e29c5fa8e15cf0 (
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
40
41
42
|
# Maintainer: Julian Maingot <sikmir@gmail.com>
# Contributor: Nikolay Korotkiy <sikmir@gmail.com>
pkgname=pyglossary
pkgver=4.6.1
pkgrel=2
pkgdesc="A tool for converting dictionary files aka glossaries with various formats for different dictionary applications"
arch=(any)
url="https://github.com/ilius/pyglossary"
license=('GPL3')
# TODO add python-libzim if/when it exists
depends=('python>=3.9.0')
optdepends=(
'python-gobject: Gtk3-based interface'
'tix: Tkinter-based interface'
'python-prompt_toolkit: interactive command-line interface'
'python-lxml: Many optional flags and formats'
'python-beautifulsoup4: HTML parsing'
'python-yaml: Reading from cc-kedict'
'python-pyicu: Reading or writing Aard 2 (.slob) files'
'python-marisa: Writing to Kobo E-Reader Dictionary'
'python-lzo: Required for some MDX glossaries'
'python-html5lib: Required to write to AppleDict'
'libplist: Required for AppleDict support'
'gtk4: Required for the new Gtk4-based interface'
'python-psutil: Required to show memory usage'
'python-polib: Required for gettext support'
)
makedepends=('python-setuptools')
provides=("${pkgname}=${pkgver}")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ilius/${pkgname}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('1eb56bc7e670b5908ad0997ca5974bee11e717ee186fe19cc8d5c7fcecafead2')
package() {
cd "$srcdir/$pkgname-$pkgver"
python setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1
cp config.json $pkgdir/usr/share/pyglossary
}
install=pyglossary.install
# vim:set ts=2 sw=2 et:
|