]> Raphaƫl G. Git Repositories - youtubedl/blob - debian/rules
debian/rules: Adapt to new upstream build system.
[youtubedl] / debian / rules
1 #!/usr/bin/make -f
2 %:
3 dh $@ --with python2 --buildsystem=python_distutils
4
5 override_dh_auto_configure:
6 PREFIX=/usr SYSCONFDIR=/etc make
7 mv Makefile Makefile.inactive
8 rm youtube-dl
9
10 override_dh_install:
11 mv debian/youtube-dl/usr/etc debian/youtube-dl/
12 dh_install
13
14 override_dh_installdocs:
15 dh_installdocs
16 mv debian/youtube-dl/usr/share/doc/youtube_dl/* debian/youtube-dl/usr/share/doc/youtube-dl
17 rmdir debian/youtube-dl/usr/share/doc/youtube_dl
18
19 override_dh_clean:
20 -mv Makefile.inactive Makefile
21 -make clean
22 dh_clean
23 rm -rf youtube_dl.egg-info