g5 907 B

12345678910111213141516171819
  1. #Makefile: Debian package creation
  2. deb: BINFILES/youtube-dl.deb
  3. BINFILES/youtube-dl.deb: youtube-dl clean
  4. mkdir -p DebData DebControl
  5. $(MAKE) install DESTDIR=DebData
  6. cd DebData && find usr -type f -print0 | xargs -0 md5sum > ../DebControl/md5sums && tar -cJf ../data.tar.xz ./*
  7. rm -R DebData
  8. cp DebianPkg/conffiles DebianPkg/p* DebControl/
  9. env echo -ne "Package: youtube-dl\nVersion: " > DebControl/control
  10. devscripts/version.sh -r >> DebControl/control
  11. env echo -ne "\nArchitecture: all\nMaintainer: Grace Past <gpast_panama@protonmail.com>\nInstalled-Size: " >> DebControl/control
  12. du | tail -1 | awk '{ print $1 }' >> DebControl/control
  13. cat DebianPkg/control >> DebControl/control
  14. cd DebControl && tar -czf ../control.tar.gz ./*
  15. rm -R DebControl
  16. echo 2.0 > debian-binary
  17. $(AR) rcs BINFILES/youtube-dl.deb debian-binary control.tar.gz data.tar.xz
  18. rm debian-binary control.tar.gz data.tar.xz