File debian.rules of Package surge-xt-nightly

#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
GIT_COMMIT_HASH := $(shell dpkg-parsechangelog -S Version | awk -F . '{ print $$5 }'|cut -c 1-7)
GIT_TAG := $(shell dpkg-parsechangelog -S Version | awk -F'[+.]' '{ print $$1"."$$2"."$$3 }')
GIT_BRANCH := main/$(GIT_TAG)

UBUNTU_VERSION := $(shell lsb_release -sr)
ifeq ($(UBUNTU_VERSION),20.04)
    export CXX=g++-11
    export CC=gcc-11
endif

%:
	dh $@
	echo "# This file is generated by our pipeline so we can construct version information without git" >VERSION_GIT_INFO
	echo $(GIT_BRANCH) >>VERSION_GIT_INFO
	echo $(GIT_COMMIT_HASH) >>VERSION_GIT_INFO
override_dh_auto_configure:
	dh_auto_configure -- \
	-DSURGE_BUILD_TESTRUNNER=OFF \
	-DSURGE_BUILD_LV2=TRUE
openSUSE Build Service is sponsored by