#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk

# cdbs 0.4.182 (openkylin) no longer ships the python-distutils class
# (/usr/share/cdbs/1/class/python-distutils.mk), so run setup.py directly.
build/feisty-wallpapers::
	python3 setup.py build

install/feisty-wallpapers::
	# New setuptools (>=60) uses the posix_local sysconfig scheme which
	# would install everything below $(DEB_DESTDIR)/usr/local; force the
	# install directories to /usr explicitly.
	python3 setup.py install --root=$(DEB_DESTDIR) --prefix=/usr \
		--install-data=/usr \
		--install-purelib=/usr/lib/python3/dist-packages
	rm -rf $(DEB_DESTDIR)/usr/lib/
