debian swirl logo

Back to the packages list libanyevent-serialize-perl

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/perl-makemaker.mk

MAIN_MODULE	= lib/AnyEvent/Serialize.pm

DEBVERSION = $(shell dpkg-parsechangelog \
		|grep ^Version|awk '{print $$2}'|sed 's/-.*//' )
PERVERSION = $(shell grep '^our[[:space:]]\+\$$VERSION' $(MAIN_MODULE) \
		|awk '{print $$4}'|sed "s/[';']//g" )

install/libanyevent-serialize-perl::
		@set -e; \
	if ! test "x$(DEBVERSION)" = "x$(PERVERSION)"; then \
			echo "Error: changelog has version $(DEBVERSION) " \
				"but module has $(PERVERSION)"; \
			false; \
		fi

clean::
		rm -fr Makefile.old


tarball: clean
		rm -f AnyEvent-Serialize-*
	cd .. && tar --exclude= .git --exclude=debian -czvf \
                libanyevent-serialize-perl_$(DEBVERSION).orig.tar.gz \
                libanyevent-serialize-perl-$(DEBVERSION)

Builds:

libanyevent-serialize-perl
serializer and deserializer for anyevent