🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
pkgname: hunspell
pkgver: '1.7.3'
pkgrel: '1'
pkgdesc: 'Spell checker and morphological analyzer library and program'
url: 'https://hunspell.sourceforge.net/'
arch: x86_64
license:
- GPL
- LGPL
- MPL
- custom
depends: []
makedepends:
- git
source:
- 'https://github.com/hunspell/hunspell/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz'
sha256sums:
- SKIP
build: |
git clone https://github.com/titoBouzout/Dictionaries
pushd ${pkgname}-${pkgver}
./configure --prefix=/usr \
--disable-static \
--with-ui \
--with-readline
make
make DESTDIR=${PKGDIR} install
popd
# Symlink libhunspell.so
pushd ${PKGDIR}/usr/lib
ln -sf libhunspell-1.7.so libhunspell.so
rm -f libhunspell-1.7.la
popd
# Instalacja słowników angielskich z zeklonowanego repozytorium Dictionaries
install -dm755 ${PKGDIR}/usr/share/myspell/dicts
install -dm755 ${PKGDIR}/usr/share/hunspell
install -Dm644 "Dictionaries/English (American).dic" ${PKGDIR}/usr/share/hunspell/en_US.dic
install -Dm644 "Dictionaries/English (American).aff" ${PKGDIR}/usr/share/hunspell/en_US.aff
install -Dm644 "Dictionaries/English (Australian).dic" ${PKGDIR}/usr/share/hunspell/en_AU.dic
install -Dm644 "Dictionaries/English (Australian).aff" ${PKGDIR}/usr/share/hunspell/en_AU.aff
install -Dm644 "Dictionaries/English (British).dic" ${PKGDIR}/usr/share/hunspell/en_GB.dic
install -Dm644 "Dictionaries/English (British).aff" ${PKGDIR}/usr/share/hunspell/en_GB.aff
install -Dm644 "Dictionaries/English (Canadian).dic" ${PKGDIR}/usr/share/hunspell/en_CA.dic
install -Dm644 "Dictionaries/English (Canadian).aff" ${PKGDIR}/usr/share/hunspell/en_CA.aff
install -Dm644 "Dictionaries/English (South African).dic" ${PKGDIR}/usr/share/hunspell/en_ZA.dic
install -Dm644 "Dictionaries/English (South African).aff" ${PKGDIR}/usr/share/hunspell/en_ZA.aff
# Tworzenie dowiązań dla myspell
for f in ${PKGDIR}/usr/share/hunspell/*; do
ln -sf /usr/share/hunspell/$(basename $f) ${PKGDIR}/usr/share/myspell/dicts/$(basename $f)
done
# Licencje słowników
install -dm755 ${PKGDIR}/usr/share/licenses/${pkgname}-en
install -Dm644 "Dictionaries/English (American).txt" ${PKGDIR}/usr/share/licenses/${pkgname}-en/LICENCE-US.txt
install -Dm644 "Dictionaries/English (Australian).txt" ${PKGDIR}/usr/share/licenses/${pkgname}-en/LICENCE-AU.txt
install -Dm644 "Dictionaries/English (British).txt" ${PKGDIR}/usr/share/licenses/${pkgname}-en/LICENCE-GB.txt
install -Dm644 "Dictionaries/English (Canadian).txt" ${PKGDIR}/usr/share/licenses/${pkgname}-en/LICENCE-CA.txt
install -Dm644 "Dictionaries/English (South African).txt" ${PKGDIR}/usr/share/licenses/${pkgname}-en/LICENCE-ZA.txt
package: |
true