diff options
author | B Stack <bgstack15@gmail.com> | 2019-12-29 13:06:46 +0000 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2019-12-29 13:06:46 +0000 |
commit | 5dd2ccf0878b4d9939999cd7904e2361522c73d9 (patch) | |
tree | 0dd4e58c857c63e2f0e0b250ed66028effb35fc9 /notepadpp/debian/rules | |
parent | Merge branch 'freefilesync-bump' into 'master' (diff) | |
parent | Add notepad++ as notepadpp (diff) | |
download | stackrpms-5dd2ccf0878b4d9939999cd7904e2361522c73d9.tar.gz stackrpms-5dd2ccf0878b4d9939999cd7904e2361522c73d9.tar.bz2 stackrpms-5dd2ccf0878b4d9939999cd7904e2361522c73d9.zip |
Merge branch 'notepadpp-bump' into 'master'
Add notepad++ as notepadpp
See merge request bgstack15/stackrpms!112
Diffstat (limited to 'notepadpp/debian/rules')
-rwxr-xr-x | notepadpp/debian/rules | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/notepadpp/debian/rules b/notepadpp/debian/rules new file mode 100755 index 0000000..99bae2a --- /dev/null +++ b/notepadpp/debian/rules @@ -0,0 +1,43 @@ +#!/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=notepadpp +export appname_32=notepadpp-bin32 +export appname_64=notepadpp-bin64 +export appname_common=notepadpp-common +export appdir_32=notepadpp32 +export appdir_64=notepadpp64 +export debuilddir="debian" +export buildroot="${debuilddir}/${appname}" +export buildroot_common="${debuilddir}/${appname_common}" +export buildroot_32="${debuilddir}/${appname_32}" +export buildroot_64="${debuilddir}/${appname_64}" + +%: + dh $@ + +override_dh_fixperms: + dh_fixperms + chmod 0666 ${buildroot_32}${_datadir}/${appdir_32}/config.xml || : + chmod 0666 ${buildroot_32}${_datadir}/${appdir_32}/session.xml || : + chmod 0666 ${buildroot_32}${_datadir}/${appdir_32}/shortcuts.xml || : + chmod 0666 ${buildroot_32}${_datadir}/${appdir_32}/stylers.xml || : + chmod 0777 ${buildroot_32}${_datadir}/${appdir_32}/backup || : + chmod 0666 ${buildroot_64}${_datadir}/${appdir_64}/config.xml || : + chmod 0666 ${buildroot_64}${_datadir}/${appdir_64}/session.xml || : + chmod 0666 ${buildroot_64}${_datadir}/${appdir_64}/shortcuts.xml || : + chmod 0666 ${buildroot_64}${_datadir}/${appdir_64}/stylers.xml || : + chmod 0777 ${buildroot_64}${_datadir}/${appdir_64}/backup || : + +override_dh_auto_install: + dh_auto_install + # fix the *model.xml files + mkdir -p ${buildroot_32}${_datadir}/${appdir_32}/backup ${buildroot_64}${_datadir}/${appdir_64}/backup + install -m0644 ${appname_32}/langs.model.xml ${buildroot_32}${_datadir}/${appdir_32}/langs.xml + install -m0644 ${appname_64}/langs.model.xml ${buildroot_64}${_datadir}/${appdir_64}/langs.xml |