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
|
#!/usr/bin/make -f
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
DEB_DH_STRIP_ARGS_ALL = --dbgsym-migration='libpolkit-gtk-mate-1-0-dbg (<< 1.14.0-2~)'
DEB_BUILD_PARALLEL = 1
# use the NEWS file as upstream ChangeLog...
DEB_DH_INSTALLCHANGELOGS_ARGS = NEWS
DEB_INSTALL_DOCS_ALL = README AUTHORS HACKING
DEB_DH_INSTALL_ARGS += --fail-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 \
--enable-gtk-doc \
--with-gtk=3.0
common-install-indep:: remove-cruft install-wrapper
common-install-arch:: remove-cruft install-wrapper
remove-cruft::
rm -fv debian/tmp/usr/lib/*/*.la
install-wrapper::
mkdir -p debian/tmp/usr/bin/
cat debian/bin/mate-polkit.in | sed -e 's/@BUILD_ARCH@/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)/' > debian/tmp/usr/bin/mate-polkit
get-orig-source:
uscan --noconf --force-download --rename --download-current-version --destdir=..
|