diff options
author | Dmytro Meleshko | 2019-10-17 00:49:35 +0300 |
---|---|---|
committer | Dmytro Meleshko | 2019-10-17 00:49:35 +0300 |
commit | 14947dffaed8c5197d076f66fed0f6b0c02ec459 (patch) | |
tree | cac3d9868cdcd3013ae29ee1e90689d7f0a41394 /PKGBUILD | |
parent | 276da1673e7fa8bb553b97fe52ced4df72f3cbbc (diff) | |
download | aur-14947dffaed8c5197d076f66fed0f6b0c02ec459.tar.gz |
rewrite PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 11 insertions, 29 deletions
@@ -1,10 +1,9 @@ -# $Id$ - -pkgname=('hyphen-ru') +# Maintainer: Dmytro Meleshko <dmytro.meleshko@gmail.com> +pkgname=hyphen-ru pkgver=0.1 -pkgrel=2 +pkgrel=3 pkgdesc="Russian hyphenation rules" -arch=(any) +arch=('any') url="http://wiki.services.openoffice.org/wiki/Dictionaries" license=('LGPL') optdepends=('hyphen: offers hyphenation library functions') @@ -12,31 +11,14 @@ source=(#http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionar # mirror from ApacheOpenOffice - see: http://www.openoffice.org/distribution/mirrors/master.html # http://sunsite.informatik.rwth-aachen.de/ftp/pub/mirror/OpenOffice/contrib/dictionaries/hyph_ru_RU.zip https://master.dl.sourceforge.net/project/openofficeorg.mirror/contrib/dictionaries/hyph_ru_RU.zip) -md5sums=('f8a8b8a368bc7394b5a4060082c44bb4') - - -build() { - /bin/true -} - +sha256sums=('95b2198f937f1ba1fe2373302c81517ee88a38c237a1ed5557c543a7e2b141df') package() { - cd "$srcdir" - install -dm755 ${pkgdir}/usr/share/hyphen - #cp -p hyph_ru_RU.dic $pkgdir/usr/share/hyphen - install -m 644 hyph_ru_RU.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 -m 644 README_hyph_ru_RU.txt $pkgdir/usr/share/doc/$pkgname + install -vdm755 "$pkgdir/usr/share/"{hyphen,myspell/dicts,"doc/$pkgname"} + for dict in hyph_ru_RU.dic; do + install -vm644 "$dict" "$pkgdir/usr/share/hyphen" + ln -sv "/usr/share/hyphen/$dict" "$pkgdir/usr/share/myspell/dicts" + done + install -vm644 README_hyph_ru_RU.txt "$pkgdir/usr/share/doc/$pkgname" } - |