PKGBUILD files are how packages are built and created for Arch Linux and its derivatives such as Manjaro.

You may have even come across them a bit yourself if you8217ve ever used the AUR Arch Linux8217s user-curated repository of PKGBUILDs.

But how exactly do you go from a PKGBUILD to an installable package What exactly is going on between the two and how can you make them for your own packages You8217ll learn them in this article.

For those who are familiar with Bash or other shells you8217ll be delighted to know if you didn8217t already that a PKGBUILD is pretty much just a shell script with some variables.

PKGBUILD files consist of variables and functions all of which are used to define the package itself and how to build it.

To create a package from a PKGBUILD the makepkg command line utility is used. After obtaining a PKGBUILD you simply run makepkg inside the directory containing the PKGBUILD and voila you have an installable package.

...

Read Full Post

News Link: https://itsfoss.com/create-pkgbuild/.
RSS Link: https://itsfoss.com/feed/.

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.