jobextra/enchant-pure/PKGBUILD

73 lines
2.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=enchant-pure
_pkgname=enchant
pkgver=2.6.5
pkgrel=01
pkgdesc="A wrapper library for pure and generic spell checking for all languages, supporting Aspell and Myspell/Hunspell backend engines"
url="https://github.com/AbiWord/enchant"
depends=('aspell' 'glib2' 'hunspell')
makedepends=('aspell' 'hunspell' 'autoconf' 'automake' 'gettext') # 'hspell' 'nuspell' 'libvoikko' ) ## those options turned off
checkdepends=('unittestpp')
optdepends=('libvoikko: for libvoikko based spell checking support'
'hspell: for hspell based spell checking support'
'nuspell: for nuspell based spell checking support')
conflicts=("${_pkgname}")
provides=("${_pkgname}" "libenchant-2.so")
source=("https://github.com/AbiWord/enchant/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz")
prepare() {
cd $_pkgname-$pkgver
autoreconf -vfi
}
build() {
cd $_pkgname-$pkgver
./configure --prefix=/usr \
--disable-static \
--with-aspell=yes \
--with-hunspell=yes \
--with-voikko=no \
--with-hspell=no \
--with-zemberek=no \
--with-applespell=no \
--enable-relocatable
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $_pkgname-$pkgver
make check
}
package() {
cd $_pkgname-$pkgver
make DESTDIR="$pkgdir" install
# installing some symlinks for compatibility with enchant-1
ln -s "enchant-2" "${pkgdir}/usr/bin/enchant"
ln -s "enchant-lsmod-2" "${pkgdir}/usr/bin/enchant-lsmod"
ln -s "enchant-2" "${pkgdir}/usr/include/enchant"
ln -s "enchant-2" "${pkgdir}/usr/lib/enchant"
ln -s "libenchant-2.so.${pkgver}" "${pkgdir}/usr/lib/libenchant.so.${pkgver}"
ln -s "libenchant-2.so.${pkgver}" "${pkgdir}/usr/lib/libenchant.so.2"
ln -s "libenchant-2.so.${pkgver}" "${pkgdir}/usr/lib/libenchant.so"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(LGPL)
sha256sums=(9e8fd28cb65a7b6da3545878a5c2f52a15f03c04933a5ff48db89fe86845728e) # enchant-2.6.5.tar.gz
## d65c75fc5ceb6188576c4626609d58cce8a3d09402ada5ec35472705321c1a5f enchant-pure-2.6.5-01-x86_64.pkg.tar.lz