Translations:Create Manjaro Packages/22/en
From Manjaro
Views
Actions
Namespaces
Variants
Tools
makepkg defines three variables that you should use as part of the build and install process:
startdir
- This contains the absolute path to the directory where the
PKGBUILD
file is located. This variable used to be used in combination with/src
or/pkg
postfixes, but the use ofsrcdir
andpkgdir
variables is the modern method.$startdir/src
is not guaranteed to be the same as$srcdir
, and likewise for$pkgdir
. Use of this variable is deprecated and strongly discouraged. srcdir
- This points to the directory where makepkg extracts or copies all source files.
pkgdir
- This points to the directory where makepkg bundles the installed package, which becomes the root directory of your built package.
All of them contain absolute paths, which means, you don't have to worry about your working directory if you use these variables properly.