Hi
Yes, the debian package file called rules/install copies files into place from an untarred binary.
0 jan@snapperkob:~/src/sagemath-upstream-binary/sagemath-upstream-binary/debian$cat install
# to instruct dh_install
amd64/bootstrap /usr/lib/sagemath
amd64/build /usr/lib/sagemath
amd64/config /usr/lib/sagemath
amd64/configure /usr/lib/sagemath
amd64/
configure.ac /usr/lib/sagemath
amd64/local /usr/lib/sagemath
amd64/m4 /usr/lib/sagemath
amd64/sage /usr/lib/sagemath
amd64/src /usr/lib/sagemath
amd64/.git /usr/lib/sagemath
amd64/.gitignore /usr/lib/sagemath
amd64/COPYING.txt /usr/lib/sagemath
amd64/Makefile /usr/lib/sagemath
amd64/README.txt /usr/lib/sagemath
amd64/VERSION.txt /usr/lib/sagemath
debian/sagemath.desktop /usr/share/applications
0 jan@snapperkob:~/src/sagemath-upstream-binary/sagemath-upstream-binary/debian$
The files are:
0 jan@snapperkob:/usr/lib/sagemath$ls -l
total 404
-rw-r--r-- 1 root root 70547 Apr 18 02:17 COPYING.txt
-rw-r--r-- 1 root root 5844 Apr 18 02:17 Makefile
-rw-r--r-- 1 root root 13940 Apr 18 02:17 README.txt
-rw-r--r-- 1 root root 38 Apr 18 02:17 VERSION.txt
-rwxr-xr-x 1 root root 3630 Apr 18 02:17 bootstrap
drwxr-xr-x 3 root root 4096 Apr 25 06:39 build
drwxr-xr-x 2 root root 4096 Apr 25 06:39 config
-rwxr-xr-x 1 root root 249151 Apr 18 02:21 configure
-rw-r--r-- 1 root root 25671 Apr 18 02:17
configure.acdrwxr-xr-x 12 root root 4096 Apr 25 06:39 local
drwxr-xr-x 2 root root 4096 Apr 25 06:39 m4
-rwxr-xr-x 1 root root 4816 Apr 18 02:17 sage
drwxr-xr-x 10 root root 4096 Apr 25 06:39 src
0 jan@snapperkob:/usr/lib/sagemath$