6f425e9187
Reverts a change made in 1d79784495
that
removed the make args. Also add explanation for why the make arguments
are necessary.
37 lines
1.3 KiB
Bash
37 lines
1.3 KiB
Bash
# Template file for 'enchant2'
|
|
pkgname=enchant2
|
|
version=2.2.15
|
|
revision=2
|
|
wrksrc="enchant-${version}"
|
|
build_style=gnu-configure
|
|
# so package doesn't conflict with enchant's /usr/share/enchant/enchant.ordering;
|
|
# might be a bug in their build system that only this directory and/or file aren't
|
|
# suffixed appropriately.
|
|
# passing this in make is safe because this is the value used to define the macro
|
|
# that their code uses to find enchant.ordering
|
|
make_build_args="pkgdatadir=/usr/share/enchant-2"
|
|
make_install_args="$make_build_args"
|
|
# tests need --enable-relocatable
|
|
configure_args="--enable-relocatable"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libglib-devel hunspell-devel aspell-devel libvoikko-devel
|
|
libnuspell-devel"
|
|
checkdepends="unittest-cpp"
|
|
short_desc="Generic spell checking library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://abiword.github.io/enchant/"
|
|
distfiles="https://github.com/AbiWord/enchant/releases/download/v${version}/enchant-${version}.tar.gz"
|
|
checksum=3b0f2215578115f28e2a6aa549b35128600394304bd79d6f28b0d3b3d6f46c03
|
|
|
|
enchant2-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/enchant-2/*.a"
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|