57 lines
1.7 KiB
Bash
57 lines
1.7 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
|
|
pkgver=2.6.2
|
|
pkgrel=01
|
|
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
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(LGPL)
|
|
|
|
sha256sums=(6686a728e56e760f8dee09a22f0fb53b46ee9dbe7d64cf9e5bb35a658bff7e1d) # enchant-2.6.2.tar.gz
|
|
|
|
## 45c5e12e3efc807079bfe314ca4a8114afdea7ea295809cce81546b79d1e06e9 enchant-2.6.2-01-x86_64.pkg.tar.lz
|
|
|