#!/usr/bin/make -f export SHELL=/bin/bash ## borrowed from stevepusser's logic ## Build with gcc-10 on releases where default gcc is 11 ## If you enable this, then d/control needs lsb-release as a build dependency. #distrelease := $(shell lsb_release -cs) #ifeq ($(distrelease),$(filter $(distrelease),sid beowulf/ceres)) export CC=gcc-10 export CXX=g++-10 export CPP=cpp-10 export LD=gcc-10 #endif export MCFILE=debian/mozconfig %: dh $@ --without autoreconf override_dh_auto_clean: dh_auto_clean find . -name '*.pyc' -delete rm -f mozconfig test -d palemoon/branding/unofficial.unbuilt && { \ rm -rf palemoon/branding/unofficial palemoon/branding/*.blue* ; \ mv palemoon/branding/unofficial.unbuilt palemoon/branding/unofficial ; \ } || : override_dh_auto_configure: cp ${MCFILE} mozconfig ! test -d palemoon/branding/unofficial.unbuilt && { \ cp -pr palemoon/branding/unofficial palemoon/branding/unofficial.unbuilt && \ tar -C palemoon/branding -zxf debian/bluemoon-icons.tgz ; } || : override_dh_auto_build: make -f client.mk build override_dh_auto_install: make -f client.mk DESTDIR=$$(pwd)/debian/newmoon prefix=/usr \ installdir=/usr/lib/newmoon \ sdkdir=/usr/lib/newmoon-devel install rm -rf $$(pwd)/debian/newmoon/usr/share/idl rm -rf $$(pwd)/debian/newmoon/usr/lib/newmoon-devel rm -rf $$(pwd)/debian/newmoon/usr/include # remove vestigial duplicate file rm -rf $$(pwd)/debian/newmoon/usr/lib/newmoon/palemoon-bin mv $$(pwd)/debian/newmoon/usr/lib/newmoon/palemoon $$(pwd)/debian/newmoon/usr/lib/newmoon/newmoon rm -rf $$(pwd)/debian/newmoon/usr/bin/palemoon override_dh_shlibdeps: dh_shlibdeps -l /usr/lib/newmoon override_dh_strip_nondeterminism: dh_strip_nondeterminism -Xdebian/newmoon/usr/lib/newmoon/browser/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi