Codebase list atari800 / e13c0d2
Modernization of d/rules (release 4.1.0-2) Antonin Kral 3 years ago
10 changed file(s) with 49 addition(s) and 112 deletion(s). Raw diff Collapse all Expand all
0 DOC/ChangeLog
1 DOC/NEWS
2 DOC/CREDITS
3 DOC/README
4 DOC/USAGE
5 DOC/FAQ
6 DOC/TODO
7 DOC/BUGS
0 debian/atari800.cfg usr/share/doc/atari800/
1 src/atari800 usr/bin
+0
-6
debian/atari800.lintian-overrides less more
0 # Standard construct for checking existence via [ -x ]
1 atari800: command-with-path-in-maintainer-script postrm:5 /usr/bin/update-menus
2
3 # We are quite positive that relro is enabled. There is .data.rel.ro structure
4 # present and blhc seems to be happy as well
5 atari800: hardening-no-relro usr/bin/atari800
0 src/atari800.man
0 atari800 (4.1.0-2) unstable; urgency=medium
1
2 * Modernization of package infrastructure to be able to switch
3 to e.g. dh_strip (Closes: #968532)
4
5 -- Antonin Kral <A.Kral@sh.cvut.cz> Wed, 19 Aug 2020 11:05:34 +0200
6
07 atari800 (4.1.0-1) unstable; urgency=medium
18
29 * New upstream version 4.1.0
11 Section: contrib/otherosfs
22 Priority: optional
33 Maintainer: Antonin Kral <A.Kral@sh.cvut.cz>
4 Build-Depends: libsdl1.2-dev, zlib1g-dev, libreadline-dev, libgl1-mesa-dev, libpng-dev, autotools-dev, dpkg-dev (>= 1.17.14~), autotools-dev, debhelper-compat (= 12)
4 Build-Depends: libsdl1.2-dev, zlib1g-dev, libreadline-dev, libgl1-mesa-dev, libpng-dev, dpkg-dev (>= 1.20), debhelper-compat (= 12)
55 Standards-Version: 4.1.4
66 Vcs-Git: https://github.com/bobek/aranym800-debian.git
77 Vcs-Browser: https://github.com/bobek/aranym800-debian
99
1010 Package: atari800
1111 Architecture: any
12 Depends: ${shlibs:Depends}
12 Depends: ${shlibs:Depends}, ${misc:Depends}
1313 Description: Atari 8-bit emulator for SDL
1414 Atari800 is an emulator of Atari 8-bit computer systems including the 400, 800,
1515 1200XL, 600XL, 800XL, 65XE, 130XE, 800XE and the XE Game System,
+0
-4
debian/postinst less more
0 #!/bin/sh
1 set -e
2
3 if [ "$1" = "configure" -a -x /usr/bin/update-menus ]; then update-menus ; fi
+0
-5
debian/postrm less more
0 #!/bin/sh
1
2 set -e
3
4 if [ -x /usr/bin/update-menus ]; then update-menus ; fi
+0
-7
debian/prerm less more
0 #!/bin/sh
1
2 set -e
3
4 if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/atari800 ]; then
5 rm -f /usr/doc/atari800
6 fi
4242 -rm -rf debian/tmp debian/*~ *~ *.orig *.log \
4343 debian/files* debian/substvars*
4444
45
46 install: build
47 dh_testdir
48 dh_testroot
49 dh_installdirs
50
51 dh_install
52
53
4554 binary: binary-arch
4655
4756 # No binary independent components to this package
48 #======================================================================
4957 binary-indep:
50 #
51 # No independent components
52 #
5358 echo "No independent binary components."
5459
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
5862
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
14081
14182 define checkdir
14283 test -f ./atari800.spec