2022-03-20 13:34:07 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
2022-07-02 21:39:57 +02:00
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
2022-03-20 13:34:07 +01:00
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
2022-07-02 21:39:57 +02:00
|
|
|
# Website : https://pozol.eu
|
2022-03-20 13:34:07 +01:00
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=enchant-pure
|
|
|
|
_pkgname=enchant
|
2023-10-29 18:04:58 +01:00
|
|
|
pkgver=2.6.2
|
2023-09-15 19:39:00 +02:00
|
|
|
pkgrel=02
|
2022-03-20 13:34:07 +01:00
|
|
|
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"
|
2023-09-15 19:39:00 +02:00
|
|
|
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')
|
2022-03-20 13:34:07 +01:00
|
|
|
conflicts=("${_pkgname}")
|
2023-09-15 19:39:00 +02:00
|
|
|
provides=("${_pkgname}" "libenchant-2.so")
|
2022-03-20 13:34:07 +01:00
|
|
|
source=("https://github.com/AbiWord/enchant/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz")
|
|
|
|
|
2023-09-15 19:39:00 +02:00
|
|
|
prepare() {
|
|
|
|
cd $_pkgname-$pkgver
|
|
|
|
autoreconf -vfi
|
|
|
|
}
|
|
|
|
|
2022-03-20 13:34:07 +01:00
|
|
|
build() {
|
2023-09-15 19:39:00 +02:00
|
|
|
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
|
|
|
|
|
2022-03-20 13:34:07 +01:00
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2023-09-15 19:39:00 +02:00
|
|
|
check() {
|
|
|
|
cd $_pkgname-$pkgver
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
2022-03-20 13:34:07 +01:00
|
|
|
package() {
|
2023-09-15 19:39:00 +02:00
|
|
|
cd $_pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
2022-03-20 13:34:07 +01:00
|
|
|
# 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"
|
|
|
|
}
|
|
|
|
|
2023-03-22 13:34:47 +01:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
2022-03-20 13:34:07 +01:00
|
|
|
|
2023-03-22 13:34:47 +01:00
|
|
|
arch=(x86_64)
|
2022-03-20 13:34:07 +01:00
|
|
|
|
2023-09-15 19:39:00 +02:00
|
|
|
license=(LGPL)
|
|
|
|
|
2023-10-29 18:04:58 +01:00
|
|
|
sha256sums=(6686a728e56e760f8dee09a22f0fb53b46ee9dbe7d64cf9e5bb35a658bff7e1d) # enchant-2.6.2.tar.gz
|
2022-03-20 13:34:07 +01:00
|
|
|
|
2023-10-29 18:04:58 +01:00
|
|
|
## ee7517aa6a30d5ad9aa4af74e8b7ba7b60b191fcd66cdd8ca1588b289a673a1a enchant-pure-2.6.2-02-x86_64.pkg.tar.lz
|