It will work, kinda, but instead of a YJ hardtop where the back liftgate wont work right with the spare tire and tailgate, try going with a CJ hardtop with matching doors for the 76 to 81 style door handles (not the paddle style, but the turn latch kind) This will work correctly and be a direct bolt on.
1975 CJ-6 304 T15 Dana20 30/44 3.73
1983 CJ-8 258 T5 300 30/44 3.31 Looking for full or half hardtop buy or trade
1986 CJ-7 Laredo 4.6 stroker T5 300 30/44 3.31
1986 TJ-7 Trail Jeep project in the works
2003 Inca Gold TJ Rubicon