summaryrefslogtreecommitdiff
path: root/irfanview/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'irfanview/debian/rules')
-rwxr-xr-xirfanview/debian/rules48
1 files changed, 48 insertions, 0 deletions
diff --git a/irfanview/debian/rules b/irfanview/debian/rules
new file mode 100755
index 0000000..e8ccb04
--- /dev/null
+++ b/irfanview/debian/rules
@@ -0,0 +1,48 @@
+#!/usr/bin/make -f
+# You must remove unused comment lines for the released package.
+#export DH_VERBOSE = 1
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+export _prefix=/usr
+export _datadir="${_prefix}/share"
+export appname=irfanview
+export debuilddir="debian"
+export buildroot="${debuilddir}/${appname}"
+
+%:
+ dh $@
+
+override_dh_fixperms:
+ dh_fixperms
+ chmod 0666 ${buildroot}${_datadir}/${appname}/i_view32.ini
+
+override_dh_auto_install:
+ dh_auto_install
+ tar -zxf debian/irfanview-icons.tgz irfanview-circle.svg
+ mkdir -p ${buildroot}${_datadir}/icons/hicolor/16x16/apps
+ mkdir -p ${buildroot}${_datadir}/icons/hicolor/22x22/apps
+ mkdir -p ${buildroot}${_datadir}/icons/hicolor/24x24/apps
+ mkdir -p ${buildroot}${_datadir}/icons/hicolor/32x32/apps
+ mkdir -p ${buildroot}${_datadir}/icons/hicolor/48x48/apps
+ mkdir -p ${buildroot}${_datadir}/icons/hicolor/64x64/apps
+ mkdir -p ${buildroot}${_datadir}/icons/hicolor/96x96/apps
+ mkdir -p ${buildroot}${_datadir}/icons/hicolor/128x128/apps
+ mkdir -p ${buildroot}${_datadir}/icons/hicolor/256x256/apps
+ mkdir -p ${buildroot}${_datadir}/icons/hicolor/scalable/apps
+ convert irfanview-circle.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/apps/${appname}.png
+ convert irfanview-circle.svg -filter Lanczos -resize 22x22 ${buildroot}${_datadir}/icons/hicolor/22x22/apps/${appname}.png
+ convert irfanview-circle.svg -filter Lanczos -resize 24x24 ${buildroot}${_datadir}/icons/hicolor/24x24/apps/${appname}.png
+ convert irfanview-circle.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/apps/${appname}.png
+ convert irfanview-circle.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/apps/${appname}.png
+ convert irfanview-circle.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/apps/${appname}.png
+ convert irfanview-circle.svg -filter Lanczos -resize 96x96 ${buildroot}${_datadir}/icons/hicolor/96x96/apps/${appname}.png
+ convert irfanview-circle.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/apps/${appname}.png
+ convert irfanview-circle.svg -filter Lanczos -resize 256x256 ${buildroot}${_datadir}/icons/hicolor/256x256/apps/${appname}.png
+ cp -p irfanview-circle.svg ${buildroot}${_datadir}/icons/hicolor/scalable/apps/${appname}.svg
+ rm -f ./irfanview-circle.svg || :
+
+override_dh_auto_clean:
+ dh_auto_clean
+ rm -rf ./irfanview-circle.svg || :
bgstack15