#!/bin/bash
cd /usr/src/tar-*/ ||exit

#old: restore compilability:
#patch -p 1 <../tar-1.14.90-gcc34-1.patch

#old: upstream bug fix:
#patch -p 1 <../tar-1.15.1-sparse_fix-1.patch

#this workaround is needed since tar-1.13.93 without libiconv:
export CFLAGS="$CFLAGS -DICONV_CONST=" &&
./configure --prefix=/usr --bindir=/bin --libexecdir=/usr/sbin &&
make &&
#make check &&
make install
