diff options
author | B. Stack <bgstack15@gmail.com> | 2022-04-05 14:00:15 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-04-05 14:00:15 -0400 |
commit | eedac700b10ab9e5900708ff06a09e881317f6eb (patch) | |
tree | a58b932c0336f100baea712d621fbb8ea9d9c40c /scite/debian/rules | |
parent | scite 5.2.2 with emitunicode patch, for fedora (diff) | |
download | stackrpms-eedac700b10ab9e5900708ff06a09e881317f6eb.tar.gz stackrpms-eedac700b10ab9e5900708ff06a09e881317f6eb.tar.bz2 stackrpms-eedac700b10ab9e5900708ff06a09e881317f6eb.zip |
scite: add devuan dpkg
Diffstat (limited to 'scite/debian/rules')
-rwxr-xr-x | scite/debian/rules | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/scite/debian/rules b/scite/debian/rules new file mode 100755 index 0000000..a5273ef --- /dev/null +++ b/scite/debian/rules @@ -0,0 +1,68 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all +#export DEB_BUILD_OPTIONS=noautodbgsym + +include /usr/share/dpkg/pkg-info.mk +BUILD_DATE ?= $(shell date --utc --date="@$(SOURCE_DATE_EPOCH)" "+%b %d %Y %T") +override CPPFLAGS += -DBUILD_DATE="\"$(BUILD_DATE)\"" + +%: + dh $@ + +override_dh_auto_build: + dh_auto_build --sourcedirectory=scintilla/gtk -- GTK3=1 $(BUILD_LUA) + dh_auto_build --sourcedirectory=lexilla/src -- GTK3=1 $(BUILD_LUA) + dh_auto_build --sourcedirectory=scite/gtk -- gnomeprefix=/usr GTK3=1 $(BUILD_LUA) + +override_dh_auto_clean: + dh_auto_clean + $(MAKE) -C scintilla/gtk clean + rm -f scintilla/bin/scintilla.a + $(MAKE) -C scite/gtk clean + $(MAKE) -C lexilla/src clean + rm -f scite/bin/liblexilla.so + rm -f scite/bin/libscintilla.so + + +override_dh_auto_install: + dh_auto_install + cd scite/gtk; $(MAKE) install GTK3=1 gnomeprefix=../../debian/scite/usr datadir=../../debian/scite/usr/share + #chmod -x $(CURDIR)/debian/scite/usr/share/scite/* + # install configuration files into the /etc directory + mv $(CURDIR)/debian/scite/usr/share/scite/*.properties $(CURDIR)/debian/scite/etc/scite + for f in $(CURDIR)/debian/scite/etc/scite/*.properties; do \ + dh_link etc/scite/$$(basename $$f) usr/share/scite/$$(basename $$f); \ + done + + +override_dh_install: + dh_install + sh debian/fix-doc.sh + mkdir -p $(CURDIR)/debian/scite/usr/share/doc/scite + mv -f $(CURDIR)/debian/scite/usr/share/scite/*.html $(CURDIR)/debian/scite/usr/share/doc/scite/ + mv -f $(CURDIR)/debian/scite/usr/share/scite/*.txt $(CURDIR)/debian/scite/usr/share/doc/scite/ + mv -f $(CURDIR)/debian/scite/usr/share/scite/*.jpg $(CURDIR)/debian/scite/usr/share/doc/scite/ + mv -f $(CURDIR)/debian/scite/usr/share/scite/*.png $(CURDIR)/debian/scite/usr/share/doc/scite/ + cp -p debian/emitUnicode.lua $(CURDIR)/debian/scite/usr/share/scite/ + @#install -d -m0755 $(CURDIR)/debian/scite/etc/scite + install -D -p -m0666 debian/SciTEGlobal.properties $(CURDIR)/debian/scite/etc/scite/ + for f in $(CURDIR)/debian/scite/usr/share/doc/scite/*.html; do \ + dh_link usr/share/doc/scite/$$(basename $$f) usr/share/scite/$$(basename $$f); \ + done + for f in $(CURDIR)/debian/scite/usr/share/doc/scite/*.txt; do \ + dh_link usr/share/doc/scite/$$(basename $$f) usr/share/scite/$$(basename $$f); \ + done + for f in $(CURDIR)/debian/scite/usr/share/doc/scite/*.jpg; do \ + dh_link usr/share/doc/scite/$$(basename $$f) usr/share/scite/$$(basename $$f); \ + done + for f in $(CURDIR)/debian/scite/usr/share/doc/scite/*.png; do \ + dh_link usr/share/doc/scite/$$(basename $$f) usr/share/scite/$$(basename $$f); \ + done + + +override_dh_installchangelogs: + dh_installchangelogs scintilla/doc/ScintillaHistory.html + +override_dh_compress: + dh_compress -X.xpm |