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
|
#!/usr/bin/make -f
# make the package build on ubuntu and debian
DIST = $(shell lsb_release -i -s)
DHFLAGS=--parallel
CONFIGURE_FLAGS= --prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--localstatedir=/var/lib/synaptic \
--sysconfdir=/etc \
--with-pkg-hold \
$(MULTIARCH)
%:
dh $@ $(DHFLAGS)
override_dh_auto_configure:
dh_auto_configure $(DHFLAGS) -- $(CONFIGURE_FLAGS)
override_dh_auto_install:
dh_auto_install $(DHFLAGS)
# allow per distro supported PIXMAP, FIXME: make this part
# of the install (e.g. package-supported.{Ubuntu,Debian} and
# do run-time switching
if [ -f debian/package-supported.png.$(DIST) ]; then \
cp debian/package-supported.png.$(DIST) $(CURDIR)/debian/synaptic/usr/share/icons/hicolor/16x16/actions/package-supported.png; \
fi
override_dh_installman:
dh_installman -psynaptic man/synaptic.es.8 man/synaptic.fr.8 man/synaptic.hr.8 man/synaptic.ja.8 man/synaptic.pt_BR.8 man/synaptic.ru.8 man/synaptic.tr.8
# patch
override_dh_auto_build:
dh_auto_build $(DHFLAGS)
# ubuntu specific for universe langpacks but will not do any
# harm on debian
make -C po synaptic.pot
# unpatch
override_dh_auto_clean:
dh_auto_clean $(DHFLAGS)
|