summaryrefslogtreecommitdiff
path: root/7w/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to '7w/debian/rules')
-rwxr-xr-x7w/debian/rules60
1 files changed, 60 insertions, 0 deletions
diff --git a/7w/debian/rules b/7w/debian/rules
new file mode 100755
index 0000000..6fc2ad5
--- /dev/null
+++ b/7w/debian/rules
@@ -0,0 +1,60 @@
+#!/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 name=7w
+export debuilddir="debian"
+export buildroot="${debuilddir}/${name}"
+export _datadir="/usr/share"
+export _bindir="/usr/bin"
+export _licensedir="${_datadir}/licenses"
+
+%:
+ dh $@
+
+override_dh_auto_build:
+ dh_auto_build --sourcedirectory=Release
+
+override_dh_auto_install:
+# upstream has no install instructions
+ #dh_auto_install -- prefix=/usr
+
+ # desktop files
+ # handled by install file
+ :
+
+ # application start script
+ # none
+ :
+
+ # man pages
+ # none
+ :
+
+ # mimetypes
+ # none
+ :
+
+ # icons
+ mkdir -p ${buildroot}${_datadir}/icons/hicolor/16x16/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/128x128/apps
+ convert debian/7w.svg -filter Lanczos -resize 16x16 ${buildroot}${_datadir}/icons/hicolor/16x16/apps/${name}.png
+ convert debian/7w.svg -filter Lanczos -resize 32x32 ${buildroot}${_datadir}/icons/hicolor/32x32/apps/${name}.png
+ convert debian/7w.svg -filter Lanczos -resize 48x48 ${buildroot}${_datadir}/icons/hicolor/48x48/apps/${name}.png
+ convert debian/7w.svg -filter Lanczos -resize 64x64 ${buildroot}${_datadir}/icons/hicolor/64x64/apps/${name}.png
+ convert debian/7w.svg -filter Lanczos -resize 128x128 ${buildroot}${_datadir}/icons/hicolor/128x128/apps/${name}.png
+ # scalable icon handled by install file
+ #mkdir -p ${buildroot}${_datadir}/icons/hicolor/scalable/apps
+ #install -m0644 7w.svg ${buildroot}${_datadir}/icons/hicolor/scalable/apps
+
+#override_dh_install:
+# dh_install --list-missing -X.pyc -X.pyo
+
+override_dh_auto_clean:
+ dh_auto_clean --sourcedirectory=Release
bgstack15