upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / hyphen-hu / trunk / PKGBUILD
blob62ff632a43e796ab2f956390a05454fac9e816bf
1 # Maintainer: Balló György <ballogyor+arch at gmail dot com>
2 # Contributor: AndyRTR <andyrtr@archlinux.org>
4 pkgname=hyphen-hu
5 pkgver=20110815
6 _lo_ver=7.3.2
7 pkgrel=2
8 pkgdesc="Hungarian hyphenation rules"
9 arch=(any)
10 url="http://magyarispell.sourceforge.net/"
11 license=(LGPL GPL MPL)
12 optdepends=('hyphen: offers hyphenation library functions')
13 source=(https://download.documentfoundation.org/libreoffice/stable/${_lo_ver}/rpm/x86_64/LibreOffice_${_lo_ver}_Linux_x86-64_rpm_langpack_hu.tar.gz{,.asc})
14 validpgpkeys=('C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3') # "LibreOffice Build Team (CODE SIGNING KEY) <build@documentfoundation.org>"
15 sha256sums=('7c36145daab693c4b77224dd0ac0e904fec3350ad0df11d88076d401fb6d1976'
16             'SKIP')
18 prepare() {
19   bsdtar -x -f LibreOffice_*_Linux_x86-64_rpm_langpack_hu/RPMS/libreoffice*-dict-hu-*.x86_64.rpm
22 package() {
23   cd opt/libreoffice*/share/extensions/dict-hu/
24   install -Dm644 hyph_hu_HU.dic "$pkgdir/usr/share/hyphen/hyph_hu_HU.dic"
26   # the symlinks
27   install -dm755 "$pkgdir/usr/share/myspell/dicts"
28   pushd "$pkgdir/usr/share/myspell/dicts"
29     for file in "$pkgdir"/usr/share/hyphen/*; do
30       ln -sv /usr/share/hyphen/$(basename $file) .
31     done
32   popd
34   # docs
35   install -Dm644 README_hyph_hu_HU.txt "$pkgdir/usr/share/doc/$pkgname/README_hyph_hu_HU.txt"