$ cd ~/wdmc-build/64k-wheezy
$ chroot build
$ mount -t proc none /proc
$ mount -t devtmpfs none /dev
$ mount -t devpts none /dev/pts
$ export DEBIAN_FRONTEND=noninteractive
$ export DEBCONF_NONINTERACTIVE_SEEN=true
$ export LC_ALL=C
$ export LANGUAGE=C
$ export LANG=C
$ export DEB_CFLAGS_APPEND='-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE'
$ export DEB_BUILD_OPTIONS=nocheck
$ cd root
$ mkdir testdisk_7.0-2
$ cd testdisk_7.0-2
$ apt-get install ca-certificates
$ apt-get install dh-autoreconf
$ wget http://http.debian.net/debian/pool/main/t/testdisk/testdisk_7.0-2.dsc
$ wget http://http.debian.net/debian/pool/main/t/testdisk/testdisk_7.0.orig.tar.bz2
$ wget http://http.debian.net/debian/pool/main/t/testdisk/testdisk_7.0-2.debian.tar.xz
$ tar -jxvf testdisk_7.0.orig.tar.bz2
$ xz -d testdisk_7.0-2.debian.tar.xz
$ tar -xvf testdisk_7.0-2.debian.tar
$ mv debian/ testdisk-7.0/
$ rm -rf testdisk_7.0-2.debian.tar
$ cp testdisk_7.0-2.dsc testdisk-7.0/testdisk_7.0-2.dsc
$ dpkg-buildpackage -d -b -uc