5cbf2464e4
ncurses-devel isn't necessary in order to build applications using libaspell, and we can avoid pulling it in. Also use vsed.
50 lines
1.6 KiB
Bash
50 lines
1.6 KiB
Bash
# Template file for 'aspell'
|
|
pkgname=aspell
|
|
version=0.60.8
|
|
revision=5
|
|
build_style=gnu-configure
|
|
# we need to force aspell to use /usr/lib for data for two reasons:
|
|
# - in multilib systems, it should use the native dicts instead of requiring
|
|
# that a dict be installed twice
|
|
# - when cross compiling packages, it's aspell that determines where the dicts
|
|
# are to be installed; the build will error out if it tries to install the
|
|
# dictionaries into /usr/lib64 for 32-bit targets
|
|
configure_args="--enable-compile-in-filters --enable-32-bit-hash-fun
|
|
--libdir=/usr/lib"
|
|
hostmakedepends="automake libtool gettext-devel perl"
|
|
makedepends="ncurses-devel"
|
|
depends="perl"
|
|
short_desc="Spell checker with good multi-language support"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-only"
|
|
homepage="http://aspell.net/"
|
|
changelog="http://aspell.net/man-html/ChangeLog.html"
|
|
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=f9b77e515334a751b2e60daab5db23499e26c9209f5e7b7443b05235ad0226f2
|
|
|
|
pre_configure() {
|
|
# XXX workaround ctor/dtor ordering with musl
|
|
export CXXFLAGS="${CXXFLAGS/-O?/-O0}"
|
|
vsed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac
|
|
autoreconf -fi
|
|
}
|
|
|
|
libaspell_package() {
|
|
short_desc+=" - library"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
vmove "usr/lib/aspell-*"
|
|
}
|
|
}
|
|
|
|
aspell-devel_package() {
|
|
depends="aspell>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/bin/pspell-config
|
|
vmove usr/share/info
|
|
vmove usr/share/man/man1/pspell-config.1
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|