Commits

A2K  committed df724be

make deb target

  • Participants
  • Parent commits 36f6206

Comments (0)

Files changed (1)

+
+VERSION=0.8.2
 
 RESOURCES = translations_rc.py resources_rc.py
 UIS = guicomponents/fillplaylist_qt.py \
 
 %_qt.py: %_qt.ui
 	pyuic4 $< | sed s/'import resources_rc'/'import vplayer.resources_rc'/ > $@
-	
+
 %.qm: %.ts
 	lrelease $< -qm $@
 
 	rm guicomponents/*.pyc
 	rm -rf build
 	rm -rf dist
+
+deb: all
+	python setup.py bdist
+	mkdir -p deb
+	tar xv -C deb -f dist/vplayer-$(VERSION).linux-i686.tar.gz
+	mkdir -p deb/usr/bin
+	mkdir -p deb/usr/share/pixmaps
+	mkdir -p deb/usr/share/applications
+	cp vplayer deb/usr/bin/vplayer
+	cp icon.svg icon.xpm icon.png deb/usr/share/pixmaps/
+	cp vplayer.desktop deb/usr/share/applications/
+	chmod 755 deb/usr/bin/vplayer
+	chmod 644 deb/usr/share/pixmaps/* deb/usr/share/applications/*
+	mkdir -p deb/DEBIAN
+	cp control deb/DEBIAN/
+	dpkg -b deb vplayer-$(VERSION).deb