1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
arch = $(shell dpkg-architecture -qDEB_BUILD_ARCH)
install_file = /usr/bin/install -p -o root -g root -m 644
%:
dh $@ --with autoreconf
override_dh_auto_configure:
LIBS="-lm" dh_auto_configure -- --enable-shared
override_dh_installexamples:
dh_installexamples
-sed -i -e 's@$(CURDIR)/.@/usr/share/libctl@g' debian/libctl-dev/usr/share/doc/libctl-dev/examples/example.scm
override_dh_installdocs-arch:
dh_installdocs
mkdir -p debian/libctl-dev/usr/share/doc/libctl-dev
cp AUTHORS debian/libctl-dev/usr/share/doc/libctl-dev/AUTHORS
cp NEWS.md debian/libctl-dev/usr/share/doc/libctl-dev/NEWS
cp README.md debian/libctl-dev/usr/share/doc/libctl-dev/README
mkdir -p debian/libctl7/usr/share/doc/libctl7
cp AUTHORS debian/libctl7/usr/share/doc/libctl7/AUTHORS
cp NEWS.md debian/libctl7/usr/share/doc/libctl7/NEWS
cp README.md debian/libctl7/usr/share/doc/libctl7/README
override_dh_installdocs-indep:
dh_installdocs
mkdir -p debian/libctl-doc/usr/share/doc/libctl-doc
cp AUTHORS debian/libctl-doc/usr/share/doc/libctl-doc/AUTHORS
cp NEWS.md debian/libctl-doc/usr/share/doc/libctl-doc/NEWS
cp README.md debian/libctl-doc/usr/share/doc/libctl-doc/README
rm -rf debian/libctl-doc/usr/share/doc/libctl-doc/html/libctl-mkdocs-theme/license
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
echo ${arch}
endif
|