X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Frules;h=87bebbb46cc8de29eaea5934e0eadb278a90000b;hb=297b8c67d7a7adf136ef230e8abc5805d5762714;hp=ebcb3b803dfd4e5c90b16b857cf5a23b8c739149;hpb=5d4f912bcc6784f975c82f7b0ed8dc360e60aae8;p=fw%2Faltos diff --git a/debian/rules b/debian/rules index ebcb3b80..87bebbb4 100755 --- a/debian/rules +++ b/debian/rules @@ -1,26 +1,20 @@ #!/usr/bin/make -f # -*- makefile -*- +export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DH_VERBOSE=1 PKG_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)/\1/p') -DEB_VERSION := $(shell if [ -x /usr/bin/git ]; then git describe; else echo 0; fi | tr - +) # this target invoked by git-buildpackage using a clean hook, see .gbp.conf prebuild: - echo $(DEB_VERSION) - git-dch --release --new-version=$(DEB_VERSION) --multimaint-merge - git log > ChangeLog - git commit -n ChangeLog debian/changelog \ - -m "update changelogs for Debian build" -# git tag debian/$(DEB_VERSION) -# git push --tags origin master + echo "not frobbing changelog for official builds" + +configure_flags = --disable-install-shared-mime-info --enable-faketime configure: configure-stamp configure-stamp: - dh_testdir - PKG_CONFIG_PATH=/opt/stlink/lib/pkgconfig ./autogen.sh \ - --prefix=/usr --with-google-key=/opt/google/maps-api-key - touch configure-stamp + autoreconf --force -v --install + dh_auto_configure -- $(configure_flags) && touch $@ build: build-arch build-indep build-arch: build-stamp @@ -36,6 +30,7 @@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp + rm -f debian/altos.sharedmimeinfo [ ! -f Makefile ] || $(MAKE) distclean dh_clean @@ -46,7 +41,7 @@ install: build dh_installdirs $(MAKE) DESTDIR=$(CURDIR)/debian/altos install - sed -i "/dependency_libs/ s/'.*'/''/" `find debian/altos/usr/lib/altos/ -name '*.la'` + sed -i "/dependency_libs/ s/'.*'/''/" `find debian/altos/ -name '*.la'` binary-indep: install @@ -62,22 +57,14 @@ binary-arch: install ln -s /usr/share/altos/themes/background.png \ debian/altos/usr/share/slim/themes/altusmetrum/background.png dh_installmenu -# dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_python -# dh_installinit -# dh_installcron -# dh_installinfo + cp icon/org-altusmetrum-mimetypes.xml debian/altos.sharedmimeinfo + dh_installmime dh_installman + dh_lintian dh_link dh_strip dh_compress dh_fixperms -# dh_perl -# dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol