Create the APKBUILD
Learn how to create a complex APKBUILD for a C++/CMake project.
We'll cover the following
Preface
Now that we’ve learned how to create a simple APKBUILD
, it’s time to make a more complex one. This APKBUILD
will be for a C++ project called shaer
, a simple command-line utility for calculating the MD5
checksum of a file and printing it to the terminal.
In this lesson, we’ll learn how to recognize the dependencies a package has, how to run a package’s test, and how to execute CMake
.
Generate the APKBUILD
The first thing to do is to checkout the repository of shaer
, which is hosted on GitHub. This way, we can gather additional information about the package. Its README
mentions that the package has a few dependencies, including boost
, fmt
and poco
:
Get hands-on with 1400+ tech skills courses.