X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=debian%2Frules;h=9f24321b6d1398f2b0e38bdfb213588795ec3cec;hp=ac594c076242236ce4c40b79a5d9625bd4ac13b0;hb=c3314dae2d3df82e188daf6ba8520cce833592c6;hpb=2de548f45d0f50b558acc83f57e1e2fc1223ab92 diff --git a/debian/rules b/debian/rules index ac594c07..9f24321b 100755 --- a/debian/rules +++ b/debian/rules @@ -3,16 +3,17 @@ export DH_VERBOSE=1 PKG_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)/\1/p') -DEB_VERSION := $(shell git describe | tr - +) +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: - git-dch --release --new-version=$(DEB_VERSION) + echo $(DEB_VERSION) + git-dch --release --new-version=$(DEB_VERSION) --multimaint-merge git log > ChangeLog - git commit ChangeLog debian/changelog \ + git commit -n ChangeLog debian/changelog \ -m "update changelogs for Debian build" - git tag debian/$(DEB_VERSION) - git push --tags origin master +# git tag debian/$(DEB_VERSION) +# git push --tags origin master configure: configure-stamp configure-stamp: @@ -20,11 +21,14 @@ configure-stamp: ./autogen.sh --prefix=/usr touch configure-stamp -build: build-stamp +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) VERSION=$(PKG_VERSION) + (cd doc ; $(MAKE)) touch $@ clean: @@ -41,14 +45,10 @@ install: build dh_installdirs $(MAKE) DESTDIR=$(CURDIR)/debian/altos install - install -o root -g root -m 0644 debian/altusmetrum.xpm \ - $(CURDIR)/debian/altos/usr/share/pixmaps/altusmetrum.xpm + sed -i "/dependency_libs/ s/'.*'/''/" `find debian/altos/usr/lib/altos/ -name '*.la'` -# Build architecture-independent files here. binary-indep: install -# We have nothing to do by default. -# Build architecture-dependent files here. binary-arch: install dh_testdir dh_testroot @@ -56,6 +56,10 @@ binary-arch: install dh_installdocs dh_installexamples dh_install + ln -s /usr/share/altos/themes/background.png \ + debian/altos/usr/share/gdm/themes/altusmetrum/background.png + ln -s /usr/share/altos/themes/background.png \ + debian/altos/usr/share/slim/themes/altusmetrum/background.png dh_installmenu # dh_installdebconf # dh_installlogrotate