void-packages/srcpkgs/gettext/template

50 lines
1.4 KiB
Bash

# Template file for 'gettext'
pkgname=gettext
version=0.19.4
revision=6
bootstrap=yes
build_style=gnu-configure
configure_args="--disable-java --disable-native-java --disable-csharp
--disable-libasprintf --enable-threads=posix --disable-rpath --without-emacs
--disable-openmp --with-included-libxml --with-included-libcroco
--disable-acl --with-included-glib --with-included-libcroco --without-git
--with-included-libxml --disable-openmp --disable-curses
--without-examples gl_cv_func_gettimeofday_clobber=no"
replaces="chroot-gettext>=0"
short_desc="Internationalized Message Handling Library and tools"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.gnu.org/software/gettext/"
license="GPL-3"
distfiles="http://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=8ac9f1ed1a5f8c4e656a2f37f5ba6b9ee04c4df79a575e876b0b6946aa417f3f
if [ "$CROSS_BUILD" ]; then
hostmakedepends="automake libtool git"
pre_configure() {
autoreconf -fi
}
fi
gettext-devel-examples_package() {
noarch=yes
short_desc+=" - examples for development"
pkg_install() {
vmove usr/share/doc/gettext
}
}
gettext-devel_package() {
depends="gettext-libs>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/share/aclocal
vmove usr/share/gettext
}
}
gettext-libs_package() {
short_desc+=" - shared libraries"
pkg_install() {
vmove usr/lib/*.so*
}
}