void-packages/srcpkgs/liblangtag/template
2020-01-24 11:42:53 +01:00

37 lines
1 KiB
Bash

# Template file for 'liblangtag'
pkgname=liblangtag
version=0.6.3
revision=3
build_style=gnu-configure
build_helper="gir"
configure_args="$(vopt_enable gir introspection)"
hostmakedepends="automake libtool pkg-config"
makedepends="libxml2-devel"
short_desc="Interface library to access tags for identifying languages"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.0-or-later, MPL-2.0"
homepage="http://tagoh.bitbucket.org/liblangtag"
distfiles="https://bitbucket.org/tagoh/${pkgname}/downloads/${pkgname}-${version}.tar.bz2"
checksum=1f12a20a02ec3a8d22e54dedb8b683a43c9c160bda1ba337bf1060607ae733bd
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="liblangtag>=${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
}
}