40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'liblangtag'
|
|
pkgname=liblangtag
|
|
version=0.5.8
|
|
revision=1
|
|
build_style=gnu-configure
|
|
short_desc="Interface library to access tags for identifying languages"
|
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
|
license="LGPL-2, MPL"
|
|
homepage="http://tagoh.bitbucket.org/liblangtag"
|
|
distfiles="https://bitbucket.org/tagoh/${pkgname}/downloads/${pkgname}-${version}.tar.bz2"
|
|
makedepends="libxml2-devel"
|
|
hostmakedepends="automake libtool pkg-config gobject-introspection"
|
|
configure_args="$(vopt_enable gir introspection)"
|
|
checksum=08e2f64bfe3f750be7391eb0af53967e164b628c59f02be4d83789eb4f036eaa
|
|
|
|
build_options="gir"
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
else
|
|
# Avoid non-working tests for va_copy
|
|
configure_args+=" ac_cv_va_copy=C99"
|
|
fi
|
|
|
|
pre_configure() {
|
|
autoreconf -if
|
|
}
|
|
|
|
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 [ -z "$CROSS_BUILD" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|