#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=-all
export CFLAGS =
export CXXFLAGS =
export LDFLAGS =

PNAME   := losf
VERSION := 0.56.0
SRCDIR  := $(CURDIR)/$(PNAME)-$(VERSION)
PKG     := $(CURDIR)/debian/$(PNAME)-ohpc

%:
	dh $@

override_dh_auto_configure:
	test -s SOURCES/$(PNAME)-$(VERSION).tar.gz || \
		wget -q -O SOURCES/$(PNAME)-$(VERSION).tar.gz \
			https://github.com/hpcsi/losf/archive/v$(VERSION).tar.gz
	rm -rf $(SRCDIR)
	tar xf SOURCES/$(PNAME)-$(VERSION).tar.gz

override_dh_auto_build:

override_dh_auto_install:
	mkdir -p $(PKG)/opt/losf
	cp -a $(SRCDIR)/* $(PKG)/opt/losf/

override_dh_auto_clean:
	rm -rf $(SRCDIR)

override_dh_usrlocal:

override_dh_strip:

override_dh_auto_test:
