2012-02-28 10:57:54 +01:00
|
|
|
# Template file for 'chroot-gzip'
|
|
|
|
pkgname=chroot-gzip
|
2014-01-08 10:08:38 +01:00
|
|
|
version=1.6
|
2014-03-17 11:40:20 +01:00
|
|
|
revision=3
|
2012-02-28 10:57:54 +01:00
|
|
|
wrksrc="gzip-${version}"
|
2014-01-08 10:08:38 +01:00
|
|
|
bootstrap=yes
|
|
|
|
conflicts="gzip>=0"
|
|
|
|
provides="gzip-${version}_${revision}"
|
2012-02-28 10:57:54 +01:00
|
|
|
build_style=gnu-configure
|
2014-01-08 10:08:38 +01:00
|
|
|
configure_args="gl_cv_func_fprintf_posix=yes gl_cv_func_fflush_stdin=yes"
|
2013-02-05 01:18:07 +01:00
|
|
|
homepage="http://www.gnu.org/software/gzip/"
|
|
|
|
license="GPL-3"
|
2012-02-28 10:57:54 +01:00
|
|
|
short_desc="GNU compression utility -- for xbps-src use"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-02-05 01:18:07 +01:00
|
|
|
distfiles="http://ftp.gnu.org/gnu/gzip/gzip-$version.tar.gz"
|
2014-01-08 10:08:38 +01:00
|
|
|
checksum=97eb83b763d9e5ad35f351fe5517e6b71521d7aac7acf3e3cacdb6b1496d8f7e
|
2012-02-28 10:57:54 +01:00
|
|
|
|
2013-02-05 01:18:07 +01:00
|
|
|
pre_configure() {
|
2014-01-08 10:08:38 +01:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
*-musl)
|
|
|
|
# Special case for musl libc; "fix" issues with gnulib.
|
|
|
|
: > lib/fseeko.c
|
|
|
|
echo "void close_stdin(void) {}" > lib/closein.c
|
|
|
|
;;
|
|
|
|
esac
|
2013-02-05 01:18:07 +01:00
|
|
|
}
|
|
|
|
|
2012-02-28 10:57:54 +01:00
|
|
|
post_install() {
|
|
|
|
rm -rf ${DESTDIR}/usr/share
|
2014-01-14 10:44:17 +01:00
|
|
|
if [ -f ${DESTDIR}/usr/lib/charset.alias ]; then
|
|
|
|
rm -f ${DESTDIR}/usr/lib/charset.alias
|
|
|
|
fi
|
2012-02-28 10:57:54 +01:00
|
|
|
}
|