#! /bin/sh

mkdir tmpbld && cd tmpbld
wget opensc-<datum>.git.tar.gz
# ...or git clone git://github.com/entersafe/OpenSC.git
# ...and git checkout --track origin/ePass2003_1
# ...and mv OpenSC opensc-<datum>
# ...and cd opensc-<datum> && ./bootstrap
mv opensc-<datum>.git.tar.gz opensc_<ver>.orig.tar.gz
tar zxf opensc_<ver>.orig.tar.gz
cp -r ./opensc-<ver>/debian  # Copy this entire directory
cd opensc-<ver> && dpkg-buildpackage
