File debian.rules of Package starc
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export QT_SELECT := 6
export INSTALL_PREFIX = /usr
export INSTALL_DESTDIR = /debian/starc$(INSTALL_PREFIX)
export APPICON = /src/app/starcapp/Images.xcassets/AppIcon.appiconset
export DEB_CFLAGS_MAINT_APPEND = -Wno-error=implicit-function-declaration
%:
dh $@ --buildsystem=qmake6
override_dh_auto_configure:
unzip /usr/src/packages/SOURCES/pdfhummus-*.zip
unzip /usr/src/packages/SOURCES/pdftextextraction-*.zip
unzip /usr/src/packages/SOURCES/qbreakpad-*.zip
unzip /usr/src/packages/SOURCES/breakpad-*.zip
unzip /usr/src/packages/SOURCES/lss-*.zip
sed -i '/common\/using_std_string.h/a\#include <cstdint>/' src/3rd_party/qbreakpad/third_party/breakpad/src/client/linux/handler/minidump_descriptor.h
dh_auto_configure -- \
src/starc.pro
#override_dh_auto_build:
# mkdir _build
# cd _build && qmake6 ../src/starc.pro && make
override_dh_install:
install -Dm 0755 $(CURDIR)/_build/starcapp $(CURDIR)$(INSTALL_DESTDIR)/lib/$(DEB_HOST_MULTIARCH)/starc/starc
install -dm 0755 $(CURDIR)$(INSTALL_DESTDIR)/bin/
ln -sf $(INSTALL_PREFIX)/lib/$(DEB_HOST_MULTIARCH)/starc/starc $(CURDIR)$(INSTALL_DESTDIR)/bin/
install -Dm 0755 $(CURDIR)/_build/libcorelib.so.1.0.0 -t $(CURDIR)$(INSTALL_DESTDIR)/lib/$(DEB_HOST_MULTIARCH)/
ln -sf libcorelib.so.1.0.0 $(CURDIR)$(INSTALL_DESTDIR)/lib/$(DEB_HOST_MULTIARCH)/libcorelib.so.1
ln -sf libcorelib.so.1.0.0 $(CURDIR)$(INSTALL_DESTDIR)/lib/$(DEB_HOST_MULTIARCH)/libcorelib.so.1.0
install -Dm 0755 $(CURDIR)/_build/plugins/*.so -t $(CURDIR)$(INSTALL_DESTDIR)/lib/$(DEB_HOST_MULTIARCH)/starc/plugins/
install -Dm 0644 $(CURDIR)/build/linux/appdir/starc.desktop $(CURDIR)$(INSTALL_DESTDIR)/share/applications/starc.desktop
install -Dm 0644 $(CURDIR)$(APPICON)/icon_16x16.png $(CURDIR)$(INSTALL_DESTDIR)/share/icons/hicolor/16x16/apps/starc.png
install -Dm 0644 $(CURDIR)$(APPICON)/icon_32x32.png $(CURDIR)$(INSTALL_DESTDIR)/share/icons/hicolor/32x32/apps/starc.png
install -Dm 0644 $(CURDIR)$(APPICON)/icon_128x128.png $(CURDIR)$(INSTALL_DESTDIR)/share/icons/hicolor/128x128/apps/starc.png
install -Dm 0644 $(CURDIR)$(APPICON)/icon_256x256.png $(CURDIR)$(INSTALL_DESTDIR)/share/icons/hicolor/256x256/apps/starc.png
install -Dm 0644 $(CURDIR)$(APPICON)/icon_512x512.png $(CURDIR)$(INSTALL_DESTDIR)/share/icons/hicolor/512x512/apps/starc.png
install -Dm 0644 /usr/src/packages/SOURCES/starc.mime.xml $(CURDIR)$(INSTALL_DESTDIR)/share/mime/packages/starc.xml
dh_install --
override_dh_missing:
dh_missing --fail-missing