readme update

This commit is contained in:
spitkov 2025-01-05 15:32:59 +01:00
parent e19ba7ac5e
commit 08d12cc656

View file

@ -6,14 +6,25 @@ Simple package manager for Linux. Uses JSON for package definitions.
Install dependencies: Install dependencies:
```bash ```bash
sudo apt-get install build-essential cmake libssl-dev zlib1g-dev sudo apt-get install build-essential cmake libssl-dev zlib1g-dev nlohmann-json3-dev
``` ```
We build our own curl to make a static binary that works everywhere without dependencies. We build our own curl because the system's libcurl is usually only available as a dynamic library. Building our own lets us:
- Create a static binary that works everywhere
- Include only the features we need (HTTP support)
- Avoid dependency problems during static linking
Build steps: Build steps:
```bash ```bash
bash build_curl.sh # Get the code
git clone https://github.com/spitkov/ynspkg.git
cd ynspkg
# Build static curl
chmod +x build_curl.sh
./build_curl.sh
# Build yns
mkdir build && cd build mkdir build && cd build
cmake .. cmake ..
make make