jobextra/enchant/PKGBUILD

60 lines
1.8 KiB
Bash
Raw Permalink 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.7.3
pkgrel=02
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)
2023-10-29 18:04:58 +01:00
sha512sums=('ca20ae45a42c1c3fec5ef81753f2bbfd1faaa33a6b0c60adc8ac77ab5eb0015be488a5b128b56cdface5f16c5bd3ea1623e9035a39d8453f7a3a713b04f392c7')
sha256sums=(fe6ad4cbe8c71b9384ffdef962be52d4d2bd5ebfb6351435bb390543d4f78b1e) # enchant-2.7.3.tar.gz
## 7c25684e24b4863728ae132dca97abb785e162c6de3f9d2c2b517e9bc93b13fc enchant-2.7.3-02-x86_64.pkg.tar.lz