jobextra/enchant/PKGBUILD

57 lines
1.7 KiB
Bash
Raw Normal View History

#!/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.0
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
}
2023-03-13 18:48:43 +01:00
#---- arch license gpg-key & sha256sums ----
2023-03-13 18:48:43 +01:00
arch=(x86_64)
2023-03-13 18:48:43 +01:00
license=(LGPL)
sha256sums=(3357ea93a1744ffbcd730223cc8366135d40ff59881ae0591d51d3ee8ff9ae6f) # enchant-2.6.0.tar.gz91ab934cac48f833029ba78dd779fc1ed91341fe')
## 6adfce745575fa7b01296ccf43af1a4deddc169065f1fb86ea34fe3c42a0ed87 enchant-2.6.0-01-x86_64.pkg.tar.lz