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

#provided deprecated tempfile (using current mk[s]temp())
patch -p 1 <../mktemp-1.5-add_tempfile-1.patch

#--with-libc: mktemp program uses mkstemp/mkdtemp from libc:
./configure --prefix=/usr --with-libc &&
make &&
make install &&
make install-tempfile
