File: makefile.patch

package info (click to toggle)
python-whiteboard 1.0%2Bgit20170915-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,568 kB
  • sloc: python: 1,702; xml: 61; makefile: 23; sh: 12
file content (23 lines) | stat: -rw-r--r-- 722 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Index: python-whiteboard-1.0+git20170915/makefile
===================================================================
--- python-whiteboard-1.0+git20170915.orig/makefile
+++ python-whiteboard-1.0+git20170915/makefile
@@ -1,7 +1,7 @@
 all: languages
 
 languages:
-	lrelease trans/*.ts
+	lrelease -qt5 trans/*.ts
 
 clean:
 	rm -f trans/*.qm
@@ -18,6 +18,9 @@ install:
 	cp dist/pywb_pixmap.xpm $(DESTDIR)/usr/share/pixmaps
 	cp dist/python-whiteboard.desktop $(DESTDIR)/usr/share/applications
 	cp trans/*.qm $(DESTDIR)/usr/share/qt4/translations/
+	# resize the icon
+	f=$(DESTDIR)/usr/share/pixmaps/pywb_pixmap.xpm; \
+	   convert -resize 31x32 $$f $$f.tmp && mv $$f.tmp $$f
 
 deb:
 	fakeroot dpkg-buildpackage -us -uc