debian swirl logo

Back to the packages list unittest++

#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/dpatch.mk

get-orig-source:
		uscan --force-download --repack

install/libunittest++-dev::
		mkdir -p debian/libunittest++-dev/usr/include/unittest++/Posix/
		mkdir -p debian/libunittest++-dev/usr/lib/
		mkdir -p debian/libunittest++-dev/usr/lib/pkgconfig/
		cp src/*.h debian/libunittest++-dev/usr/include/unittest++/
		cp src/Posix/*.h debian/libunittest++-dev/usr/include/unittest++/Posix/
		cp *.a debian/libunittest++-dev/usr/lib/
		cd debian/libunittest++-dev/usr/lib && ln -s libUnitTest++.a libunittest++.a 
		cp unittest++.pc debian/libunittest++-dev/usr/lib/pkgconfig/

Builds:

libunittest++-dev
unit testing framework for c++, static library and headers