blob: 7f74dd9ad67fe31befdcf2e43302f11c6ec0ef32 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
pkgname=hunspell-gl
pkgver=22.03
pkgrel=2
epoch=2
pkgdesc="Galician hunspell dictionaries. RAG/ILG normative"
arch=(any)
url="https://gitlab.com/proxecto-trasno/hunspell-gl"
license=('GPL3')
optdepends=('hunspell: the spell checking libraries and apps')
makedepends=('scons' 'python-pyicu' 'qt6-webengine')
provides=($pkgname)
conflicts=($pkgname)
source=("${pkgname}.tar.bz2::https://gitlab.com/proxecto-trasno/hunspell-gl/-/archive/${pkgver}/hunspell-gl-${pkgver}.tar.bz2")
md5sums=('975956a5e790c15f42ada0a52847fb25')
prepare() {
mkdir -p "$srcdir/$pkgname" && tar xfj "$pkgname.tar.bz2" -C "$pkgname" --strip-components 1
}
build() {
cd "$srcdir/$pkgname"
_exclude='(iso[0-9]+|volga)'
_use=$(ls src | grep -v / | xargs echo | sed -E "s/$_exclude( |\$)//g" | sed 's/ /,/g')
scons aff=$_use dic=$_use rep=$_use
}
package(){
cd "$srcdir"
install -dm755 "$pkgdir"/usr/share/hunspell
install -m644 \
"$pkgname"/build/gl.dic \
"$pkgname"/build/gl.aff \
"$pkgdir"/usr/share/hunspell
pushd "$pkgdir"/usr/share/hunspell
ln -sv /usr/share/hunspell/gl.dic gl_ES.dic
ln -sv /usr/share/hunspell/gl.aff gl_ES.aff
popd
# myspell symlinks
install -dm755 "$pkgdir"/usr/share/myspell/dicts
pushd "$pkgdir"/usr/share/myspell/dicts
for file in "$pkgdir"/usr/share/hunspell/*; do
ln -sv /usr/share/hunspell/$(basename $file) .
done
popd
# docs
install -dm644 "$pkgdir"/usr/share/doc/$pkgname
# webengine dictionaries
install -d "$pkgdir"/usr/share/qt{,6}/qtwebengine_dictionaries/
/usr/lib/qt6/qwebengine_convert_dict \
"$pkgdir"/usr/share/hunspell/gl.dic \
"$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/gl.bdic
pushd "$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/
ln -sv "$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/gl.bdic gl_ES.bdic
ln -rs "$pkgdir"/usr/share/qt6/qtwebengine_dictionaries/gl.bdic "$pkgdir"/usr/share/qt/qtwebengine_dictionaries/
popd
}
|