Translations:Create Manjaro Packages/41/en
From Manjaro
Views
Actions
Namespaces
Variants
Tools
Now, you need to list the same commands you used when you manually compiled the software. The build()
function in essence automates everything you did by hand and compiles the software in the fakeroot build environment. If the software you are packaging uses a configure script, it is good practice to use --prefix=/usr
when building packages for pacman. A lot of software installs files relative to the /usr/local
directory, which should only be done if you are manually building from source. All Arch Linux packages should use the /usr
directory. As seen in the /usr/share/pacman/PKGBUILD.proto
file, the next two lines often look like this: