summaryrefslogtreecommitdiff
path: root/freefilesync/debian/rules
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-02-02 01:51:22 +0000
committerB Stack <bgstack15@gmail.com>2019-02-02 01:51:22 +0000
commit3c02a73c7f94cf91635b4ff736501e3d52265838 (patch)
tree47b224ccd882ec12a932ad77732704ea082eed65 /freefilesync/debian/rules
parentadd palemoon dpkg for devuan (diff)
parentadd freefilesync dpkg rough draft (diff)
downloadstackrpms-3c02a73c7f94cf91635b4ff736501e3d52265838.tar.gz
stackrpms-3c02a73c7f94cf91635b4ff736501e3d52265838.tar.bz2
stackrpms-3c02a73c7f94cf91635b4ff736501e3d52265838.zip
Merge branch 'freefilesync-dpkg' into 'master'
freefilesync dpkg for devuan See merge request bgstack15/stackrpms!33
Diffstat (limited to 'freefilesync/debian/rules')
-rwxr-xr-xfreefilesync/debian/rules88
1 files changed, 88 insertions, 0 deletions
diff --git a/freefilesync/debian/rules b/freefilesync/debian/rules
new file mode 100755
index 0000000..cc1a493
--- /dev/null
+++ b/freefilesync/debian/rules
@@ -0,0 +1,88 @@
+#!/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 appname=freefilesync
+export pkgname=FreeFileSync
+export prog2name=RealTimeSync
+export debuilddir="debian"
+export debuildappdir="${debuilddir}/${appname}"
+
+%:
+ dh $@
+
+override_dh_auto_clean:
+ dh_auto_clean
+ dh_auto_clean --sourcedirectory=FreeFileSync/Source
+ dh_auto_clean --sourcedirectory=FreeFileSync/Source/RealTimeSync
+ rm -f ${pkgname}.png ${prog2name}.png file_batch.png
+
+override_dh_auto_build:
+ dh_auto_build
+ dh_auto_build --sourcedirectory=FreeFileSync/Source
+ dh_auto_build --sourcedirectory=FreeFileSync/Source/RealTimeSync
+
+override_dh_auto_install:
+ dh_auto_install
+ dh_auto_install --sourcedirectory=FreeFileSync/Source
+ dh_auto_install --sourcedirectory=FreeFileSync/Source/RealTimeSync
+
+ # make extra sure the files are not marked with executable
+ find ${debuildappdir}/share/${pkgname} -type f -exec chmod -x '{}' \; || :
+ #find %{buildroot}%{_datadir}/%{pkgname} -type f -exec chmod -x '{}' \; || :
+
+ # desktop files
+ mkdir -p ${debuildappdir}/usr/share/applications
+ desktop-file-install --dir ${debuildappdir}/usr/share/applications ${debuilddir}/freefilesync.desktop
+ desktop-file-install --dir ${debuildappdir}/usr/share/applications ${debuilddir}/realtimesync.desktop
+
+ # application start script
+ # none
+
+ # man pages
+ # none
+
+ # mimetypes
+ # none
+
+ # icons
+ unzip ${pkgname}/Build/Resources.zip ${pkgname}.png ${prog2name}.png file_batch.png
+ mkdir -p ${debuildappdir}/usr/share/icons/hicolor/16x16/apps
+ mkdir -p ${debuildappdir}/usr/share/icons/hicolor/32x32/apps
+ mkdir -p ${debuildappdir}/usr/share/icons/hicolor/48x48/apps
+ mkdir -p ${debuildappdir}/usr/share/icons/hicolor/64x64/apps
+ mkdir -p ${debuildappdir}/usr/share/icons/hicolor/128x128/apps
+ mkdir -p ${debuildappdir}/usr/share/icons/hicolor/16x16/mimetypes
+ mkdir -p ${debuildappdir}/usr/share/icons/hicolor/32x32/mimetypes
+ mkdir -p ${debuildappdir}/usr/share/icons/hicolor/48x48/mimetypes
+ mkdir -p ${debuildappdir}/usr/share/icons/hicolor/64x64/mimetypes
+ mkdir -p ${debuildappdir}/usr/share/icons/hicolor/128x128/mimetypes
+ convert ${pkgname}.png -filter Lanczos -resize 16x16 ${debuildappdir}/usr/share/icons/hicolor/16x16/apps/${pkgname}.png
+ convert ${pkgname}.png -filter Lanczos -resize 32x32 ${debuildappdir}/usr/share/icons/hicolor/32x32/apps/${pkgname}.png
+ convert ${pkgname}.png -filter Lanczos -resize 48x48 ${debuildappdir}/usr/share/icons/hicolor/48x48/apps/${pkgname}.png
+ convert ${pkgname}.png -filter Lanczos -resize 64x64 ${debuildappdir}/usr/share/icons/hicolor/64x64/apps/${pkgname}.png
+ convert ${pkgname}.png -filter Lanczos -resize 128x128 ${debuildappdir}/usr/share/icons/hicolor/128x128/apps/${pkgname}.png
+ convert ${pkgname}.png -filter Lanczos -resize 16x16 ${debuildappdir}/usr/share/icons/hicolor/16x16/mimetypes/application-x-freefilesync-ffs.png
+ convert ${pkgname}.png -filter Lanczos -resize 32x32 ${debuildappdir}/usr/share/icons/hicolor/32x32/mimetypes/application-x-freefilesync-ffs.png
+ convert ${pkgname}.png -filter Lanczos -resize 48x48 ${debuildappdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-freefilesync-ffs.png
+ convert ${pkgname}.png -filter Lanczos -resize 64x64 ${debuildappdir}/usr/share/icons/hicolor/64x64/mimetypes/application-x-freefilesync-ffs.png
+ convert ${pkgname}.png -filter Lanczos -resize 128x128 ${debuildappdir}/usr/share/icons/hicolor/128x128/mimetypes/application-x-freefilesync-ffs.png
+ convert ${prog2name}.png -filter Lanczos -resize 16x16 ${debuildappdir}/usr/share/icons/hicolor/16x16/apps/${prog2name}.png
+ convert ${prog2name}.png -filter Lanczos -resize 32x32 ${debuildappdir}/usr/share/icons/hicolor/32x32/apps/${prog2name}.png
+ convert ${prog2name}.png -filter Lanczos -resize 48x48 ${debuildappdir}/usr/share/icons/hicolor/48x48/apps/${prog2name}.png
+ convert ${prog2name}.png -filter Lanczos -resize 64x64 ${debuildappdir}/usr/share/icons/hicolor/64x64/apps/${prog2name}.png
+ convert ${prog2name}.png -filter Lanczos -resize 128x128 ${debuildappdir}/usr/share/icons/hicolor/128x128/apps/${prog2name}.png
+ convert ${prog2name}.png -filter Lanczos -resize 16x16 ${debuildappdir}/usr/share/icons/hicolor/16x16/mimetypes/application-x-freefilesync-real.png
+ convert ${prog2name}.png -filter Lanczos -resize 32x32 ${debuildappdir}/usr/share/icons/hicolor/32x32/mimetypes/application-x-freefilesync-real.png
+ convert ${prog2name}.png -filter Lanczos -resize 48x48 ${debuildappdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-freefilesync-real.png
+ convert ${prog2name}.png -filter Lanczos -resize 64x64 ${debuildappdir}/usr/share/icons/hicolor/64x64/mimetypes/application-x-freefilesync-real.png
+ convert ${prog2name}.png -filter Lanczos -resize 128x128 ${debuildappdir}/usr/share/icons/hicolor/128x128/mimetypes/application-x-freefilesync-real.png
+ convert file_batch.png -filter Lanczos -resize 16x16 ${debuildappdir}/usr/share/icons/hicolor/16x16/mimetypes/application-x-freefilesync-batch.png
+ convert file_batch.png -filter Lanczos -resize 32x32 ${debuildappdir}/usr/share/icons/hicolor/32x32/mimetypes/application-x-freefilesync-batch.png
+ convert file_batch.png -filter Lanczos -resize 48x48 ${debuildappdir}/usr/share/icons/hicolor/48x48/mimetypes/application-x-freefilesync-batch.png
+ convert file_batch.png -filter Lanczos -resize 64x64 ${debuildappdir}/usr/share/icons/hicolor/64x64/mimetypes/application-x-freefilesync-batch.png
+ convert file_batch.png -filter Lanczos -resize 128x128 ${debuildappdir}/usr/share/icons/hicolor/128x128/mimetypes/application-x-freefilesync-batch.png
+ rm -f ${pkgname}.png ${prog2name}.png file_batch.png
bgstack15