-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added instructions for how to build the package in a Docker container
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM debian:bullseye | ||
|
||
RUN apt-get -yqq update | ||
RUN apt-get -yqq install build-essential nano cmake dpkg-dev devscripts \ | ||
debhelper-compat libcdd-dev libgmp-dev \ | ||
texlive-latex-base texlive-plain-generic \ | ||
libbz2-dev libqsopt-ex-dev txt2man zlib1g-dev | ||
|
||
WORKDIR /home/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Building the TOPCOM Debian package | ||
Building the debian package can be a little annoying the first time, so I collected the instructions and tools I used to build it. There is a Dockerfile that is used to produce a Docker image with all of the necessary dependencies. In the Docker container the command used to build the package is either | ||
```bash | ||
dpkg-buildpackage -rfakeroot -b -uc -us | ||
``` | ||
or | ||
```bash | ||
debuild -b -uc -us | ||
``` | ||
The full instructions to build a Debian package were originally taken from this [website](https://ostechnix.com/how-to-build-debian-packages-from-source/). | ||
|
||
### Note | ||
When you build the package it will change a bunch of the files in the repository and create new ones. Therefore, you should make a temporary copy of the directory to be used for this. Otherwise, committing new changes to the repository will become a mess. |