mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 01:57:17 +08:00
41 lines
922 B
Bash
41 lines
922 B
Bash
#
|
|
# Chakra Packages, part of chakra-project.org
|
|
#
|
|
# maintainer : Mateusz Krawczuk <willingmagic[at]gmail[dot]com>
|
|
|
|
pkgname=hyphen-pl
|
|
pkgver=20111102
|
|
pkgrel=1
|
|
pkgdesc="Polish hyphenation rules"
|
|
arch=('any')
|
|
url="http://wiki.services.openoffice.org/wiki/Dictionaries"
|
|
license=('LGPL')
|
|
depends=('hyphen')
|
|
source=(http://pl.openoffice.org/pliki/hyph_pl_PL.zip)
|
|
md5sums=('e015c046f60437d39223b1253b78a4e2')
|
|
|
|
build() {
|
|
cd "$srcdir"
|
|
bsdtar -xf hyph_pl_PL.zip
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"
|
|
|
|
install -dm755 ${pkgdir}/usr/share/hyphen
|
|
install -m644 hyph_pl_PL.dic ${pkgdir}/usr/share/hyphen
|
|
|
|
# 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
|
|
|
|
# docs
|
|
install -dm755 ${pkgdir}/usr/share/doc/$pkgname
|
|
install -m644 README_hyph_pl_PL.txt $pkgdir/usr/share/doc/$pkgname
|
|
|
|
}
|