From 08d12cc656663152bff6aff433b76c60b51b5222 Mon Sep 17 00:00:00 2001 From: spitkov Date: Sun, 5 Jan 2025 15:32:59 +0100 Subject: [PATCH] readme update --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9541e0b..d46659d 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,25 @@ Simple package manager for Linux. Uses JSON for package definitions. Install dependencies: ```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: ```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 cmake .. make