upg enchant-pure

This commit is contained in:
joborun linux 2023-09-15 20:39:00 +03:00
parent 729f899c35
commit 360eb8781c
3 changed files with 47 additions and 16 deletions

View File

@ -7,25 +7,50 @@
pkgname=enchant-pure
_pkgname=enchant
pkgver=2.3.4
pkgrel=03
pkgver=2.5.0
pkgrel=02
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"
depends=('aspell>=0.50.0' 'glib2' 'hunspell')
provides=("${_pkgname}" "libenchant-2.so")
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')
conflicts=("${_pkgname}")
provides=("${_pkgname}" "libenchant-2.so")
source=("https://github.com/AbiWord/enchant/releases/download/v${pkgver}/${_pkgname}-${pkgver}.tar.gz")
prepare() {
cd $_pkgname-$pkgver
autoreconf -vfi
}
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
./configure --prefix=/usr --enable-static=no --with-aspell=yes --with-hunspell=yes --with-voikko=no --with-hspell=no --with-zemberek=no --with-applespell=no
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
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd $_pkgname-$pkgver
make check
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
cd $_pkgname-$pkgver
make DESTDIR="$pkgdir" install
# 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"
@ -36,13 +61,12 @@ package() {
ln -s "libenchant-2.so.${pkgver}" "${pkgdir}/usr/lib/libenchant.so"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('LGPL')
license=(LGPL)
sha256sums=(1f7e26744db1c9a0fea61d2169f4e5c1ce435cf8c2731c37e3e4054119e994a0) # enchant-2.3.4.tar.gz
## e24b0b0afbd1cefe3042790d9be41743b04685ebba883d1ba90212bec95079e3 enchant-pure-2.3.4-03-x86_64.pkg.tar.lz
sha256sums=(149e224cdd2ca825d874639578b6246e07f37d5b8f3970658a377a1ef46f2e15) # enchant-2.5.0.tar.gz
## e01ee27ef4a5346b5aa843ddd4c3f161e169edbbfae21c2b3570e3d8bc7cbf58 enchant-pure-2.5.0-02-x86_64.pkg.tar.lz

View File

@ -1,4 +1,8 @@
aspell
hunspell
unittestpp
autoconf
automake
gettext

View File

@ -1,3 +1,6 @@
real 0m22.712s
user 0m22.877s
sys 0m3.104s
real 1m58.471s
user 1m29.140s
sys 0m9.086s