* update gspell to 1.14.0-1

This commit is contained in:
Alexander Baldeck 2024-10-04 08:30:03 +02:00
parent c60f67aef4
commit d1478db529
3 changed files with 98 additions and 26 deletions

50
gnome/gspell/.SRCINFO Normal file
View File

@ -0,0 +1,50 @@
pkgbase = gspell
pkgdesc = Spell-checking library for GTK applications
pkgver = 1.14.0
pkgrel = 1
url = https://gitlab.gnome.org/GNOME/gspell
arch = x86_64
arch = powerpc64le
arch = powerpc64
arch = powerpc
arch = riscv64
license = LGPL-2.1-or-later
checkdepends = aspell
checkdepends = hspell
checkdepends = hunspell
checkdepends = hunspell-en_us
checkdepends = libvoikko
checkdepends = nuspell
checkdepends = xorg-server-xvfb
makedepends = git
makedepends = glib2-devel
makedepends = gobject-introspection
makedepends = gtk-doc
makedepends = meson
makedepends = vala
depends = enchant
depends = glib2
depends = glibc
depends = gtk3
depends = icu
source = git+https://gitlab.gnome.org/GNOME/gspell.git#tag=1.14.0
b2sums = 7077df59156bd825098eb1b6f4065cca73b3c5cb9880303f6033b4737263dd060500616781872f50a16406bb514a5864c0432283d91a8f28f86db4301db7cc71
pkgname = gspell
depends = enchant
depends = glib2
depends = glibc
depends = gtk3
depends = icu
depends = libenchant-2.so
depends = libgtk-3.so
depends = libglib-2.0.so
depends = libgobject-2.0.so
depends = libgio-2.0.so
depends = libicuuc.so
depends = libpango-1.0.so
provides = libgspell-1.so
pkgname = gspell-docs
pkgdesc = Spell-checking library for GTK applications (documentation)
depends =

View File

@ -0,0 +1,4 @@
[gspell]
source = "git"
git = "https://gitlab.gnome.org/GNOME/gspell.git"
include_regex = '\d+\.\d*[02468]\.\d+'

View File

@ -2,56 +2,65 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>
pkgname=gspell
pkgver=1.12.2
pkgrel=3
pkgbase=gspell
pkgname=(
gspell
gspell-docs
)
pkgver=1.14.0
pkgrel=1
pkgdesc="Spell-checking library for GTK applications"
url="https://gitlab.gnome.org/GNOME/gspell"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
license=(LGPL)
license=(LGPL-2.1-or-later)
depends=(
enchant
glib2
glibc
gtk3
icu
)
makedepends=(
autoconf-archive
git
glib2-devel
gobject-introspection
gtk-doc
meson
vala
)
_commit=cbb3ae2e21234eae84e1f827bf1f27fdd0e32299 # tags/1.12.2^0
source=("git+https://gitlab.gnome.org/GNOME/gspell.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd gspell
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
checkdepends=(
aspell
hspell
hunspell
hunspell-en_us
libvoikko
nuspell
xorg-server-xvfb
)
source=("git+https://gitlab.gnome.org/GNOME/gspell.git#tag=$pkgver")
b2sums=('7077df59156bd825098eb1b6f4065cca73b3c5cb9880303f6033b4737263dd060500616781872f50a16406bb514a5864c0432283d91a8f28f86db4301db7cc71')
prepare() {
cd gspell
NOCONFIGURE=1 ./autogen.sh
}
build() {
local configure_options=(
--prefix=/usr
--sysconfdir=/etc
--localstatedir=/var
--enable-gtk-doc
local meson_options=(
-D install_tests=false
)
cd gspell
./configure "${configure_options[@]}"
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
arch-meson gspell build "${meson_options[@]}"
meson compile -C build
}
package(){
check() {
echo '*:hunspell' > enchant.ordering
ENCHANT_CONFIG_DIR="$PWD" \
xvfb-run -s '-nolisten local' \
meson test -C build --print-errorlogs
}
package_gspell(){
depends+=(
libenchant-2.so
libgtk-3.so
@ -61,8 +70,17 @@ package(){
)
provides+=("libgspell-${pkgver%%.*}.so")
cd gspell
make DESTDIR="$pkgdir" install
meson install -C build --destdir "$pkgdir"
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/gtk-doc
}
package_gspell-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
}
# vim:set sw=2 sts=-1 et: