debian swirl logo

Back to the packages list mate-polkit

#!/usr/bin/make -f

PKD   = $(word 1,$(abspath $(dir $(MAKEFILE_LIST))))
PKG   = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
UVER  = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
DTYPE = +dfsg1
VER  ?= $(subst $(DTYPE),,$(UVER))


include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk

DEB_BUILD_PARALLEL = 1

DEB_DH_INSTALL_ARGS += --list-missing

DEB_CONFIGURE_SCRIPT := ./autogen.sh

DEB_CONFIGURE_EXTRA_FLAGS := --disable-silent-rules \
                             --localstatedir=/var \
                             --libdir=/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH) \
                             --includedir=/usr/include/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH) \
                             --libexecdir=/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)/polkit-mate \
                             --disable-static \
                             --disable-introspection

get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
		@

$(PKG)_$(VER)$(DTYPE).orig.tar.xz:
		@echo "# Downloading..."
	uscan --noconf --verbose --rename --destdir= $(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
		$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
		@echo "# Extracting..."
		mkdir $(PKG)-$(VER) \
		    && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \
		    || $(RM) -r $(PKG)-$(VER)
		@echo "# Cleaning-up..."
		cd $(PKG)-$(VER) \
		    && find . -depth -type d -name 'windows' -exec $(RM) -r {} \; -printf 'removed %p\n' \
		    && $(RM) -r -v \
		        docs/
		$(RM) -v $(PKG)_$(VER).orig.tar.*
		@echo "# Packing..."
		find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
		    | XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
		    && $(RM) -r "$(PKG)-$(VER)"

Builds:

libmatepolkit-dev
mate authentication agent for policykit-1 (development files)
libpolkit-gtk-mate-1-0-dbg
mate authentication agent for policykit-1 (debugging symbols)
libpolkit-gtk-mate-1-0
mate authentication agent for policykit-1 (library)
mate-polkit-common
mate authentication agent for policykit-1 (common files)
mate-polkit
mate authentication agent for policykit-1