Skip to content

Instantly share code, notes, and snippets.

@aarroyoc
Created January 10, 2020 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarroyoc/03d6034a8de143eb2c05eb16b71de9b5 to your computer and use it in GitHub Desktop.
Save aarroyoc/03d6034a8de143eb2c05eb16b71de9b5 to your computer and use it in GitHub Desktop.
Debian package for PCC
#!/bin/bash
wget https://github.com/aarroyoc/pcc/archive/master.zip -O pcc.zip
unzip pcc.zip
mkdir -p pcc-master/debian
cp {compat,install,control,changelog,rules} pcc-master/debian/
cd pcc-master
dpkg-buildpackage -us -uc
pcc (1.0) unstable; urgency=medium
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
-- Ubuntu <ubuntu@unknown> Fri, 10 Jan 2020 12:19:59 +0000
Source: pcc
Section: unknown
Priority: optional
Maintainer: Ubuntu <ubuntu@unknown>
Build-Depends: debhelper (>= 10), flex, bison
Standards-Version: 4.1.2
Homepage: <insert the upstream URL, if relevant>
#Vcs-Git: https://anonscm.debian.org/git/collab-maint/pcc.git
#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/pcc.git
Package: pcc
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: <insert up to 60 chars description>
<insert long description, indented with spaces>
pcc usr/bin
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@
override_dh_auto_build:
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment