# Maintainer: aksr pkgname=neatroff-hyph pkgver=2018.11.04 pkgrel=1 epoch= pkgdesc="Neatroff's hyphenation files (patterns, exceptions and mappings)." arch=('i686' 'x86_64') url="http://tug.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/" license=('various') categories=() groups=() depends=() makedepends=() optdepends=('neatroff') checkdepends=() provides=() conflicts=('neatroff-suite-git') replaces=() backup=() options=() install=${pkgname}.install changelog= source=(tmac.hyph) noextract=($pkgname) options=() md5sums=('6b6da2201f84f279de87cf4168e01cb3') sha1sums=('3863fa2c2a3d2ad618d516f8e198f2b2b5d3aa81') sha256sums=('193ff26956f3954cf8b4de77c860234c315210425e872fe774953e77a87a6207') ## MACROS directory MDIR=/usr/share/neatroff/tmac ## HYPHENATION FILES HYPH=usr/share/neatroff/hyph/ prepare() { cd "$srcdir/" mkdir hyph/ || return 0 echo "Download hyphenation files:" LNG=(af as be bg bn ca cop cs cu cy da eo es et eu fi fr fur ga gl grc gu de-1901 de-1996 de-ch-1901 el-monoton el-polyton en-gb en-us hi hr hsb hu hy ia id is it ka kmr kn la la-x-classic la-x-liturgic lt lv ml mn-cyrl mr mul-ethi nb nl nn oc or pa pi pl pms pt rm ro ru sa sh-cyrl sh-latn sk sl sr-cyrl sv ta te th tk tr uk zh-latn-pinyin) LNK="ftp://ftp.ctan.org/tex-archive/language/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/" for i in "${LNG[@]}"; do echo "Language: $i" for j in "pat.txt" "hyp.txt" "chr.txt"; do curl -f -o hyph/hyph-${i}.$j ${LNK}hyph-${i}.$j done done } package() { cd $srcdir/hyph mkdir -p "$pkgdir/$HYPH" cp -a * "$pkgdir/$HYPH" ## copy hyphenation macro file mkdir -p "$pkgdir/$MDIR" install -m644 $srcdir/tmac.hyph $pkgdir/$MDIR/tmac.hyph }