void-packages/srcpkgs/liblangtag/template

38 lines
1.1 KiB
Bash

# Template file for 'liblangtag'
pkgname=liblangtag
version=0.6.7
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=5ed6bcd4ae3f3c05c912e62f216cd1a44123846147f729a49fb5668da51e030e
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
}
}