Skip to content

Commit

Permalink
debian: Adapt to new setup.py installation.
Browse files Browse the repository at this point in the history
Since installation paths now are defined in upstream setup.py, clean
up rules and install files.
  • Loading branch information
Alec Leamas authored and Alec leamas committed Apr 9, 2018
1 parent 656d0e5 commit c576a98
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 26 deletions.
19 changes: 5 additions & 14 deletions debian/mkchromecast.install
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
mkchromecast/* usr/share/mkchromecast/mkchromecast
mkchromecast.py usr/share/mkchromecast
nodejs/* usr/share/mkchromecast/nodejs
images/mkchromecast.xpm usr/share/pixmaps
images/google.png usr/share/mkchromecast/images
images/google_working.png usr/share/mkchromecast/images
images/google_nodev.png usr/share/mkchromecast/images
images/google_b.png usr/share/mkchromecast/images
images/google_working_b.png usr/share/mkchromecast/images
images/google_nodev_b.png usr/share/mkchromecast/images
images/google_w.png usr/share/mkchromecast/images
images/google_working_w.png usr/share/mkchromecast/images
images/google_nodev_w.png usr/share/mkchromecast/images
mkchromecast.desktop usr/share/applications
usr/lib/python3/dist-packages/*
usr/bin/mkchromecast
usr/share/mkchromecast
usr/share/applications/mkchromecast.desktop
usr/share/man/man1/mkchromecast.1*
21 changes: 9 additions & 12 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.

GIT='https://github.com/muammar/mkchromecast'
# The full changelog version number, used for the orig.tar.gz
Expand All @@ -12,20 +10,19 @@ export PYBUILD_NAME=mkchromecast
%:
dh $@ --with python3

override_dh_auto_build:
touch build

override_dh_auto_test:
echo 'Do nothing'
echo "No tests defined."

override_dh_install:
dh_install
dh_python3
chmod +x debian/mkchromecast/usr/share/mkchromecast/mkchromecast.py
override_dh_auto_install:
python3 setup.py install --root=debian/tmp --install-layout=deb
py3clean debian/tmp

override_dh_auto_clean:
echo 'Cleaning *.pyc'
find . -name \*.pyc -exec rm {} \;
dh_clean
rm -rf build dist install *.egg-info

override_dh_missing:
dh_missing --fail-missing

get-orig-source:
rm -rf mkchromecast-$(VER)
Expand Down

0 comments on commit c576a98

Please # to comment.