42 | 42 |
-rm -rf debian/tmp debian/*~ *~ *.orig *.log \
|
43 | 43 |
debian/files* debian/substvars*
|
44 | 44 |
|
|
45 |
|
|
46 |
install: build
|
|
47 |
dh_testdir
|
|
48 |
dh_testroot
|
|
49 |
dh_installdirs
|
|
50 |
|
|
51 |
dh_install
|
|
52 |
|
|
53 |
|
45 | 54 |
binary: binary-arch
|
46 | 55 |
|
47 | 56 |
# No binary independent components to this package
|
48 | |
#======================================================================
|
49 | 57 |
binary-indep:
|
50 | |
#
|
51 | |
# No independent components
|
52 | |
#
|
53 | 58 |
echo "No independent binary components."
|
54 | 59 |
|
55 | |
# Install package components into debian/tmp to be built into packages
|
56 | |
#======================================================================
|
57 | |
binary-arch: checkroot build
|
|
60 |
# Build architecture-independent files here.
|
|
61 |
binary-arch: build install binary-common
|
58 | 62 |
|
59 | |
# Clean out old tmp directory
|
60 | |
#
|
61 | |
-rm -rf debian/tmp
|
62 | |
install -d debian/tmp
|
63 | |
|
64 | |
# Install installation scripts
|
65 | |
#
|
66 | |
install -d debian/tmp/DEBIAN
|
67 | |
install -m 755 debian/postinst debian/tmp/DEBIAN/.
|
68 | |
install -m 755 debian/postrm debian/tmp/DEBIAN/.
|
69 | |
install -m 755 debian/prerm debian/tmp/DEBIAN/.
|
70 | |
|
71 | |
# Install docs in proper directory and gzip them
|
72 | |
#
|
73 | |
install -d debian/tmp/usr/share/doc/$(P)
|
74 | |
cp debian/changelog debian/tmp/usr/share/doc/$(P)/changelog.Debian
|
75 | |
cp DOC/ChangeLog debian/tmp/usr/share/doc/$(P)/changelog
|
76 | |
cp DOC/NEWS debian/tmp/usr/share/doc/$(P)/NEWS
|
77 | |
cp DOC/CREDITS debian/tmp/usr/share/doc/$(P)/CREDITS
|
78 | |
cp DOC/README debian/tmp/usr/share/doc/$(P)/README
|
79 | |
cp DOC/USAGE debian/tmp/usr/share/doc/$(P)/USAGE
|
80 | |
gzip -9nv debian/tmp/usr/share/doc/$(P)/*
|
81 | |
|
82 | |
# These are too small to gzip
|
83 | |
#
|
84 | |
cp DOC/FAQ debian/tmp/usr/share/doc/$(P)/FAQ
|
85 | |
cp DOC/BUGS debian/tmp/usr/share/doc/$(P)/BUGS
|
86 | |
cp DOC/TODO debian/tmp/usr/share/doc/$(P)/TODO
|
87 | |
cp debian/README.Debian debian/tmp/usr/share/doc/$(P)/README.Debian
|
88 | |
cp debian/atari800.cfg debian/tmp/usr/share/doc/$(P)/atari800.cfg
|
89 | |
|
90 | |
|
91 | |
# and don't gzip the copyright statement
|
92 | |
#
|
93 | |
cp debian/copyright debian/tmp/usr/share/doc/$(P)/copyright
|
94 | |
|
95 | |
# install and gzip man page
|
96 | |
#
|
97 | |
install -d debian/tmp/usr/share/man/man1
|
98 | |
install -m 644 src/$(P).man debian/tmp/usr/share/man/man1/$(P).1
|
99 | |
gzip -9nv debian/tmp/usr/share/man/man1/$(P).1
|
100 | |
|
101 | |
# install menu file
|
102 | |
#
|
103 | |
install -d debian/tmp/usr/share/menu
|
104 | |
install -m 644 debian/menu debian/tmp/usr/share/menu/$(P)
|
105 | |
|
106 | |
# install binaries
|
107 | |
#
|
108 | |
install -d debian/tmp/usr/bin
|
109 | |
install -s src/$(P) debian/tmp/usr/bin/$(P)
|
110 | |
|
111 | |
strip -R .comment -R .note -R .note.ABI-tag debian/tmp/usr/bin/$(P)
|
112 | |
|
113 | |
# Install lintian overrides
|
114 | |
|
115 | |
install -d debian/tmp/usr/share/lintian/overrides
|
116 | |
install -m 644 debian/atari800.lintian-overrides debian/tmp/usr/share/lintian/overrides/atari800
|
117 | |
|
118 | |
# (if [ "$(ARCH)" = "i386" ]; then install debian/$(P) debian/tmp/usr/bin; \
|
119 | |
# else install debian/$(P).alt debian/tmp/usr/bin/$(P); fi)
|
120 | |
|
121 | |
# Create dependency information
|
122 | |
#
|
123 | |
dpkg-shlibdeps src/$(P)
|
124 | |
|
125 | |
# Generate control file for the package
|
126 | |
#
|
127 | |
dpkg-gencontrol -p$(P) -isp
|
128 | |
|
129 | |
# Clean up file ownership
|
130 | |
#
|
131 | |
chown -R root.root debian/tmp
|
132 | |
|
133 | |
# and permissions
|
134 | |
#
|
135 | |
chmod -R g-ws debian/tmp
|
136 | |
|
137 | |
# and build the package
|
138 | |
#
|
139 | |
dpkg --build debian/tmp ..
|
|
63 |
binary-common:
|
|
64 |
dh_testdir
|
|
65 |
dh_testroot
|
|
66 |
dh_installdocs
|
|
67 |
dh_installmenu
|
|
68 |
dh_installcron
|
|
69 |
dh_installman
|
|
70 |
dh_installinfo
|
|
71 |
dh_installchangelogs
|
|
72 |
dh_link
|
|
73 |
dh_strip
|
|
74 |
dh_compress
|
|
75 |
dh_fixperms
|
|
76 |
dh_installdeb
|
|
77 |
dh_shlibdeps
|
|
78 |
dh_gencontrol
|
|
79 |
dh_md5sums
|
|
80 |
dh_builddeb
|
140 | 81 |
|
141 | 82 |
define checkdir
|
142 | 83 |
test -f ./atari800.spec
|