38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'liblangtag'
|
|
pkgname=liblangtag
|
|
version=0.6.4
|
|
revision=1
|
|
build_style=gnu-configure
|
|
build_helper=gir
|
|
configure_args="$(vopt_enable gir introspection)"
|
|
hostmakedepends="libtool pkg-config"
|
|
makedepends="libxml2-devel"
|
|
short_desc="Interface library to access tags for identifying languages"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="LGPL-3.0-or-later, MPL-2.0"
|
|
homepage="https://bitbucket.org/tagoh/liblangtag/src"
|
|
changelog="https://bitbucket.org/tagoh/liblangtag/raw/main/NEWS"
|
|
distfiles="https://bitbucket.org/tagoh/liblangtag/downloads/liblangtag-${version}.tar.bz2"
|
|
checksum=5701062c17d3e73ddaa49956cbfa5d47d2f8221988dec561c0af2118c1c8a564
|
|
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Avoid non-working tests for va_copy
|
|
configure_args+=" ac_cv_va_copy=C99"
|
|
fi
|
|
|
|
liblangtag-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} $makedepends"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|