README
[systemd-monitor] / makedeb
1 #!/bin/bash
2
3 set -eu
4
5 if [ "$(id -u)" -ne 0 ]; then
6 exec fakeroot "$0"
7 fi
8
9 source PKGBUILD
10
11 set -x
12
13 pkgdir="${PWD}/${pkgname}_${pkgver}-${pkgrel}_all"
14
15 umask 0022
16 rm -rf "$pkgdir"
17 mkdir "${pkgdir}" "${pkgdir}/DEBIAN"
18
19 "package"
20
21 cat > "${pkgdir}/DEBIAN/control" <<EOT
22 Section: misc
23 Priority: optional
24 Standards-Version: 3.9.2
25 Package: ${pkgname}
26 Description: ${pkgdesc}
27 Version: ${pkgver}-${pkgrel}
28 Maintainer: James Bunton <jamesbunton@delx.net.au>
29 Architecture: all
30 EOT
31
32 dpkg-deb -b "${pkgdir}"
33
34 rm -rf "${pkgdir}"