# Template build file for 'chroot-gettext'.
pkgname=chroot-gettext
version=0.18.2
revision=1
wrksrc="gettext-${version}"
build_wrksrc=gettext-tools
build_style=gnu-configure
configure_args="--disable-java --disable-native-java --disable-csharp
 --disable-libasprintf --enable-threads=posix --disable-rpath
 --disable-acl --with-included-glib --with-included-libcroco --without-git
 --with-included-libxml --without-included-regex --without-emacs
 --disable-shared --disable-nls --disable-openmp --disable-curses
 --without-included-regex"
homepage="http://www.gnu.org/software/gettext/"
license="GPL-3"
short_desc="Internationalized Message Handling tools -- for xbps-src use"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="http://ftp.gnu.org/pub/gnu/gettext/gettext-$version.tar.gz"
checksum=516a6370b3b3f46e2fc5a5e222ff5ecd76f3089bc956a7587a6e4f89de17714c

bootstrap=yes

post_install() {
	rm -rf ${DESTDIR}/usr/share ${DESTDIR}/usr/lib ${DESTDIR}/usr/include
}

chroot-gettext_package() {
	conflicts="gettext>=0"
	provides="gettext-${version}"
	pkg_install() {
		vmove usr
	}
}
