https://github.com/threeal/libmongoose-deb
Debian package build workspace for the Mongoose library
https://github.com/threeal/libmongoose-deb
debian debian-packages mongoose mongoose-library
Last synced: about 1 month ago
JSON representation
Debian package build workspace for the Mongoose library
- Host: GitHub
- URL: https://github.com/threeal/libmongoose-deb
- Owner: threeal
- License: mit
- Created: 2020-05-03T06:23:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T09:21:12.000Z (about 6 years ago)
- Last Synced: 2025-01-26T11:42:23.773Z (over 1 year ago)
- Topics: debian, debian-packages, mongoose, mongoose-library
- Language: CMake
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lib Mongoose Deb
This repository contains CMake build project for the Mongoose library.
It was created to accomodate the library packaging using the debian packaging system.
## Usage
### Updating the Source Code
- Initialize and update the `mongoose` submodule.
```sh
$ git submodule init
$ git submodule update
```
- Move to the `mongoose` directory and pull the latest update.
```sh
$ cd mongoose
$ git pull
```
- Change some values in the `CMakeLists.txt` as follow:
- Update the project version according to the current source code version. _(usually could be seen in the `mongoose/mongoose.h` file)_
- If the project version does not change and you need to create a revised debian package, increase the `PACKAGE_REVISION` value. Else, reset the value to `1`.
### Building the Library
- Create a build directory and move to it.
```sh
$ mkdir build
$ cd build
```
- Configure Makefile using the following command:
```sh
$ cmake ..
```
- Build the library.
```sh
$ make install
```
> Make sure the `install` directory in this project already emptied, else there could be some unused files that may be included in the package.
### Building the Package
- Back to the project root and move to `install` directory.
```sh
$ cd install
```
- Build each directory in the `install` directory as a debian package using the following command:
```sh
$ dpkg-deb --build
```
- If `dpkg-deb` has not been installed, install it using `apt` command.
```sh
$ sudo apt install dpkg-deb
```