| Name |
hyphen |
| Description |
library for high quality hyphenation and justification |
| Version |
2.8.8-6 |
| Package Base |
hyphen |
| Homepage |
https://hunspell.sf.net |
| Maintainers |
['Andreas Radke <andyrtr@archlinux.org>', 'AndyRTR <andyrtr@archlinux.org>'] |
| Contributors |
[] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/hyphen |
| Sources |
['https://downloads.sourceforge.net/hunspell/hyphen-2.8.8.tar.gz'] |
| Dependencies |
['glibc', 'perl'] |
| Optional-Dependencies |
[] |
| Build-Dependencies |
['glibc', 'perl'] |
| Provides |
[] |
| Builddate |
02-07-2024 21:55:25 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['GPL-2.0-only OR LGPL-2.1-or-later OR MPL-1.1'] |
| Hash |
273725e19f208214b3504fa99706988cb5cb01b659aacb52164861d6969f9122 |
# Maintainer: AndyRTR <andyrtr@archlinux.org>
pkgbase=hyphen
pkgname=('hyphen' 'hyphen-en')
pkgver=2.8.8
pkgrel=6
arch=('x86_64')
url="https://hunspell.sf.net"
license=('GPL-2.0-only OR LGPL-2.1-or-later OR MPL-1.1')
makedepends=('glibc' 'perl')
source=(https://downloads.sourceforge.net/hunspell/${pkgname}-${pkgver}.tar.gz)
sha1sums=('0556c392beb59433e577e3517575801212201df6')
sha256sums=('304636d4eccd81a14b6914d07b84c79ebb815288c76fe027b9ebff6ff24d5705')
prepare() {
cd "$pkgname-$pkgver"
autoreconf -vfi
}
build() {
cd "$pkgname"-$pkgver
./configure --prefix=/usr --disable-static
make
}
package_hyphen() {
pkgdesc="library for high quality hyphenation and justification"
depends=('glibc' 'perl')
cd "$pkgbase"-$pkgver
make DESTDIR="$pkgdir/" install-libLTLIBRARIES
make DESTDIR="$pkgdir/" install-binSCRIPTS
make DESTDIR="$pkgdir/" install-includeHEADERS
# license
install -D -m644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
package_hyphen-en() {
pkgdesc="English hyphenation rules"
# arch=('any')
optdepends=('hyphen: offers hyphenation library functions')
cd "$pkgbase"-$pkgver
make DESTDIR="$pkgdir/" install-hyphDATA
pushd ${pkgdir}/usr/share/hyphen/
en_US_aliases="en_AG en_AU en_BS en_BW en_BZ en_CA en_DK en_GB en_GH en_HK en_IE en_IN en_JM en_NA en_NZ en_PH en_SG en_TT en_ZA en_ZW"
for lang in $en_US_aliases; do
ln -s hyph_en_US.dic hyph_$lang.dic
done
popd
# the symlinks
install -dm755 ${pkgdir}/usr/share/myspell/dicts
pushd "$pkgdir"/usr/share/myspell/dicts
for file in "$pkgdir"/usr/share/hyphen/*; do
ln -sv /usr/share/hyphen/$(basename $file) .
done
popd
}