File debian.rules of Package ob-xf-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++-10
    export CC=gcc-10
endif

%:
	dh $@
override_dh_auto_configure:
#	sed -i -e 's/deadbeef/$(GIT_COMMIT_HASH)/' CMakeLists.txt
	dh_auto_configure -- \
	-DSURGE_BUILD_TESTRUNNER=OFF \
	-DSURGE_BUILD_LV2=TRUE
override_dh_auto_install:
openSUSE Build Service is sponsored by