https://github.com/threeal/libargparse-deb
Debian package build workspace for the c++ argparse library
https://github.com/threeal/libargparse-deb
argument-parser cmake cpack cpp17 debian-packages library
Last synced: about 2 months ago
JSON representation
Debian package build workspace for the c++ argparse library
- Host: GitHub
- URL: https://github.com/threeal/libargparse-deb
- Owner: threeal
- License: mit
- Created: 2021-05-10T03:12:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-10T03:55:12.000Z (over 4 years ago)
- Last Synced: 2025-05-07T04:38:10.901Z (5 months ago)
- Topics: argument-parser, cmake, cpack, cpp17, debian-packages, library
- Language: CMake
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Argparse Library Debian Package
[](https://github.com/threeal/libargparse-deb/releases)
[](https://github.com/threeal/libargparse-deb/pulse)
[](./LICENSE)This project contains a [CPack](https://cmake.org/cmake/help/latest/module/CPack.html) build workspace of the [Argparse](https://github.com/p-ranav/argparse) library.
This project is created to simplify the deployment of the library as a [Debian package](https://wiki.debian.org/Packaging).## Usage
### Updating the Source Code
- Initialize the submodule and pull the latest commits.
```bash
$ git submodule update --init --recursive
```
- Modify the CPack configuration in the [CMakeLists.txt](./CMakeLists.txt) according to the current source code information.
> See [this guide](https://cmake.org/cmake/help/latest/cpack_gen/deb.html) for more information on CPack configuration for Debian package.### Building the Project
- Create a build directory and move to it.
```bash
$ mkdir build
$ cd build
```
- Configure the CMake with the following options.
```bash
$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
```
- Build the project.
```bash
$ make
```
> Optionally, you could speed up the build process by specifying the parallel job using `-j` option, see [this](https://www.gnu.org/software/make/manual/html_node/Parallel.html).
- Create the Debian package using CPack.
```bash
$ cpack
```## License
This project is maintained by [Alfi Maulana](https://threeal.github.io/) and licensed under the [MIT LICENSE](./LICENSE)