2022-07-02 21:39:57 +02:00
|
|
|
#!/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
|
2023-10-17 19:11:43 +02:00
|
|
|
pkgver=2.6.1
|
2023-07-31 02:15:12 +02:00
|
|
|
pkgrel=01
|
2022-07-02 21:39:57 +02:00
|
|
|
pkgdesc="A wrapper library for generic spell checking"
|
|
|
|
url="https://abiword.github.io/enchant/"
|
|
|
|
depends=('glib2')
|
|
|
|
makedepends=('aspell' 'hunspell' 'hspell' 'nuspell' 'libvoikko')
|
|
|
|
checkdepends=('unittestpp')
|
|
|
|
optdepends=('aspell: for aspell based spell checking support'
|
|
|
|
'hunspell: for hunspell based spell checking support'
|
|
|
|
'libvoikko: for libvoikko based spell checking support'
|
|
|
|
'hspell: for hspell based spell checking support'
|
|
|
|
'nuspell: for nuspell based spell checking support')
|
|
|
|
provides=('libenchant-2.so') # enchant_voikko.so enchant_nuspell.so enchant_hunspell.so enchant_hspell.so enchant_aspell.so)
|
|
|
|
source=("https://github.com/AbiWord/enchant/releases/download/v$pkgver/enchant-$pkgver.tar.gz")
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
autoreconf -vfi
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-static \
|
|
|
|
--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
|
|
|
|
}
|
|
|
|
|
2023-03-13 18:48:43 +01:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
2022-07-02 21:39:57 +02:00
|
|
|
|
2023-03-13 18:48:43 +01:00
|
|
|
arch=(x86_64)
|
2022-07-02 21:39:57 +02:00
|
|
|
|
2023-03-13 18:48:43 +01:00
|
|
|
license=(LGPL)
|
|
|
|
|
2023-10-17 19:11:43 +02:00
|
|
|
sha256sums=(f24e12469137ae1d03140bb9032a47a5947c36f4d1e2f12b929061005eb15279) # enchant-2.6.1.tar.gz
|
|
|
|
|
|
|
|
## 05ff3258fc63755097d4700d9040adfa37a389ec274f294f6bdc6282ae99ad6d enchant-2.6.1-01-x86_64.pkg.tar.lz
|