Name aspell
Description A spell checker designed to eventually replace Ispell
Version 0.60.8.2-1
Package Base aspell
Homepage http://aspell.net/
Maintainers ['Antonio Rojas <arojas@archlinux.org>', 'Felix Yan <felixonmars@archlinux.org>']
Contributors ['Daniel J Griffiths <ghost1227@archlinux.us>', 'Jochem Kossen <j.kossen@home.nl>', 'Thayer Williams <thayer@archlinux.org>', 'dorphell <dorphell@archlinux.org>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/aspell
Sources ['https://github.com/GNUAspell/aspell/archive/rel-0.60.8.2.tar.gz']
Dependencies ['gcc-libs', 'libncursesw.so', 'ncurses']
Optional-Dependencies ['perl']
Build-Dependencies []
Provides ['libaspell.so', 'libpspell.so']
Builddate 28-01-2026 09:19:40
Architecture x86_64
Distro-Version
Licenses ['LGPL-2.0-or-later AND LGPL-2.1-only AND GPL-2.0-or-later AND BSD-2-Clause']
Hash 125d0550c7df7ab670ee71cba9053bd91e8a8613db4a559516484d919e796101
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Jochem Kossen <j.kossen@home.nl>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Thayer Williams <thayer@archlinux.org>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=aspell
pkgver=0.60.8.2
_pkgmajorver=0.60
pkgrel=1
pkgdesc="A spell checker designed to eventually replace Ispell"
arch=('x86_64')
url="http://aspell.net/"
license=('LGPL-2.0-or-later AND LGPL-2.1-only AND GPL-2.0-or-later AND BSD-2-Clause')
depends=('gcc-libs' 'ncurses')
optdepends=('perl: to import old dictionaries')
provides=(libaspell.so libpspell.so)
source=(
  "https://github.com/GNUAspell/aspell/archive/rel-$pkgver.tar.gz"
)
sha512sums=('ff379222ef33b4ffcca68fbcc0350004e9490add7ecbe13e73b16db961167db19c427731e0d7f8d465f1c78d2ea8aa07738de8c531a7a25e518d3cf4a604a96c')
b2sums=('508ec5d8ca46b042d98a8c34e2065c4468f3d6dd5f1aa4d756ecfae91a82ead5c15252f0bcfdee479545c4808cb39896efb3f634ffe02c6bd8040f46dcb3cf04')

prepare() {
  cd $pkgname-rel-$pkgver
  PERL_USE_UNSAFE_INC=1 ./autogen
}

build() {
  cd $pkgname-rel-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc

  # prevent excessive overlinking due to libtool
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

package() {
  depends+=(libncursesw.so)

  cd $pkgname-rel-$pkgver
  make DESTDIR="$pkgdir" install
  ln -s $pkgname-$_pkgmajorver "$pkgdir"/usr/lib/$pkgname
}