50 lines
1.9 KiB
Bash
50 lines
1.9 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.3.4
|
|
pkgrel=02
|
|
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>=0.50.0' 'glib2' 'hunspell')
|
|
provides=("${_pkgname}" "libenchant-2.so")
|
|
conflicts=("${_pkgname}")
|
|
source=("https://github.com/AbiWord/enchant/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz")
|
|
|
|
build() {
|
|
cd "${srcdir}/${_pkgname}-${pkgver}"
|
|
./configure --prefix=/usr --enable-static=no --with-aspell=yes --with-hunspell=yes --with-voikko=no --with-hspell=no --with-zemberek=no --with-applespell=no
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_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=(1f7e26744db1c9a0fea61d2169f4e5c1ce435cf8c2731c37e3e4054119e994a0) # enchant-2.3.4.tar.gz
|
|
|
|
## 54fa1fb09bca248cbf35d01fbe716f66915862b13745bcea786bd124b45dbcc3 enchant-pure-2.3.4-02-x86_64.pkg.tar.lz
|
|
|