diff options
author | or | 2023-04-14 18:33:50 +0200 |
---|---|---|
committer | or | 2023-04-14 22:55:43 +0200 |
commit | 88513955dda8215464202bdae6e9da234a6f9efd (patch) | |
tree | 5115efe7d83637111e1302de142902721334b269 /PKGBUILD | |
download | aur-hunspell-multilingual-ru-en.tar.gz |
Create package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..50d0ab3a69b8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Igor Deyashkin <ovsyanka42@gmail.com> + +# I am using hunspell-ru package as an example + +pkgname=hunspell-multilingual-ru-en +# This is the version on the extension. Files in the repo and in the extension match together. +pkgver=1.0.3.1webext +_commit=607c1f0b7e8fa0c0e917aad1a85a381fabcae440 +pkgrel=0 +pkgdesc="English + Russian bilingual Hunspell dictionary." +arch=('any') +url='https://addons.mozilla.org/ru/firefox/addon/unified-russian-english-spell/' +license=('LGPL3') +optdepends=('hunspell: the spell checking libraries and apps') +source=("${pkgname}-${pkgver}.aff::https://github.com/titoBouzout/Dictionaries/raw/${_commit}/Russian-English%20Bilingual.aff" + "${pkgname}-${pkgver}.dic::https://github.com/titoBouzout/Dictionaries/raw/${_commit}/Russian-English%20Bilingual.dic" + "${pkgname}-${pkgver}-README.txt::https://github.com/titoBouzout/Dictionaries/raw/${_commit}/Russian-English%20Bilingual.txt") +sha256sums=('66b8af900983e354f5561a5f2b97ac3ca21128587b9164cc5651901a10981186' + '1972265aeb45860e0b96ae838ba4498425041aa18a82117c818ceae80d9ba20b' + '417ebf6adf8b10974f3c354c9637c10b5893d3a9c22960e52052cabcc2648dbf') + +package() { + install -vdm755 "${pkgdir}/usr/share/hunspell" + for dict in aff dic; do + install -vDm644 "${pkgname}-${pkgver}.${dict}" "${pkgdir}/usr/share/hunspell/ru-en.${dict}" + done + + # the symlinks + install -dm755 "$pkgdir"/usr/share/myspell/dicts + pushd "$pkgdir"/usr/share/myspell/dicts + for file in "$pkgdir"/usr/share/hunspell/*; do + ln -sv /usr/share/hunspell/$(basename $file) . + done + popd + # I am not sure it is correct location, just placing like in hunspell-ru package + install -vDm644 "${pkgname}-${pkgver}-README.txt" "${pkgdir}/usr/share/licenses/${pkgname}/README.txt" +} |