summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 392b9ede484e246d2ccb10195ff35f6c0e912883 (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
# Maintainer: Riderius <riderius.help@gmail.com>

pkgname=dict-ozhegov
pkgver=1.0
pkgrel=2
pkgdesc="Ozhegov's Russian Dictionary"
arch=('any')
url="https://github.com/Layerex/ozhegov-dict"
license=('unknown')
optdepends=('dictd: dict client and server')
makedepends=('python3' 'dictd')
provides=('dictd-ozhegov')
conflicts=('dictd-ozhegov')
# Install file from dict-gcide (https://aur.archlinux.org/cgit/aur.git/tree/dict-gcide.install?h=dict-gcide)
install="${pkgname}.install"
source=("${pkgname}::git+https://github.com/Layerex/ozhegov-dict.git#commit=4a5876473a935da5e33852bc3360fccc798255e0")
sha256sums=('SKIP')

prepare() {
    cd "${srcdir}/${pkgname}"
    python ozhegov-parse.py ozhegov.txt | dictfmt --utf8 --allchars -s "Словарь Ожегова" -u "https://github.com/Layerex/ozhegov-dict" -j ozhegov
    dictzip ozhegov.dict
}

package() {
    cd "${srcdir}/${pkgname}"
	install -m 0755 -d "${pkgdir}/usr/share/dictd"
	install -m 0644 -t "${pkgdir}/usr/share/dictd/" ozhegov.{dict.dz,index}
}