File: rules

package info (click to toggle)
potool 0.19-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 248 kB
  • sloc: ansic: 718; yacc: 452; sh: 290; perl: 51; makefile: 49
file content (19 lines) | stat: -rwxr-xr-x 713 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
# Copyright 2012,2019 Marcin Owsiany <porridge@debian.org>

export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
	dh $@

override_dh_auto_install:
	dh_auto_install -- DESTDIR=`pwd`/debian/potool BINDIR='$$(DESTDIR)/usr/bin' BININSTALL=install
# filename conflict with the poedit package, handled via alternatives
	mv debian/potool/usr/bin/poedit debian/potool/usr/bin/potooledit
# low quality, Polish-specific
	rm debian/potool/usr/bin/poupdate

override_dh_installman:
	dh_installman
# filename conflict with the poedit package, handled via alternatives
	rename 's,poedit[.]1,potooledit.1,' debian/potool/usr/share/man/*/man1/poedit.1 debian/potool/usr/share/man/man1/poedit.1