Drop the CarePackage!


Description: A project builder made easy for C/C++.
Download: https://getcpkg.net/download/release-
SHA-256: abaa9cdf8aa08fa9b581668212a7d6146122b98662a240f3335b0c8c45e65dda
Git: https://gitlab.seancale.xyz/tyq/cpkg
Released: 20221001
Dependencies: cpr (https://github.com/libcpr/cpr)
Build Scripts: Coming soon...
License: N/A | You are currently permitted to use, copy, modify, and redistribute the published executable binary files only, and any files generated by them.
Change Logs: https://getcpkg.net/CHANGES.md

Installing CarePackage

At the moment, CarePackage is just a raw binary file that your browser may or may not let you download. It is only available for Linux with Windows support in mind for the future.

The easiest way to install it is simply moving the cpkg executable into /usr/bin/ directory.

When it comes to installing cpr, clone the GitHub repository and run the following.

$ cmake .
$ make .
$ sudo make install

Alternatively, cpr is available on the AUR under the package name cpr.

Using CarePackage

Initializing a project

You can initialize a CarePackage project by running the following command.

$ cpkg init .

This will create a care.pkg file and a packages directory.

Currently the packages directory has no purpose, though that is planned to change in the future.

The care.pkg file is your project configuration file. The C and CC flags are your C and C++ compilers respectively - configured to work with the GNU C compiler flags (i.e. gcc/g++). For publishing purposes, it is recommended that you remove these flags as they will be automatically interpreted on the new system, or can be manually configured.

The only other flags you should worry about are your cflags (C), cppflags (C++), and linkflags (both). These are your respective compiler flags.

Building a project

It's super easy building a project. All you have to do is run the following after configuring your care.pkg file.

$ cpkg build .

This will generate a lot of object (.o) files that will then be linked together with your C++ compiler. These will not automatically be cleaned up after a successful build.

Cleaning a project

Cleaning a project is just as easy and building and initializing one. Again, just run the following command.

$ cpkg clean .

Note: This will recursively delete your build directory. There is a check to make sure it is not your current working directory, but you should not rely on this. It is recommended you designate a specific directory, like ./outDir/ for example, to place the build files.


There is a lot more to come in CarePackage: