/etc/mkpkg.conf
mkpkg.conf
is sourced as a shell script by mkpkg(8) during the shell(), build(), andpost_build()
hooks.
The
extract()
and
patch()
hooks do not source this file.
It defines compiler flags, parallel jobs, and directory paths for
the build system.CCCXXCFLAGSCXXFLAGSLDFLAGSCPPFLAGSPKG_CONFIG_PATHMAKEFLAGS-j $(nproc) for parallel builds.CARGO_HOMEGOPATHnot
exported as environment variables. They are parsed directly by the mkpkg binary.MKPKG_SOURCE_DIRMKPKG_PACKAGE_DIRMKPKG_WORK_DIR/pkgmk_ PID for unique tmpfs builds. Default: ./work .MKPKG_TMP_DIRMKPKG_COMPRESSION_MODEMKPKG_SECRET_KEYsignify()
function.
See
MAKEPKG(5).
MKPKG_IGNORE_FOOTPRINTMKPKG_IGNORE_NEWMKPKG_IGNORE_CHECKSUMSMKPKG_IGNORE_SIGNATUREMKPKG_NO_STRIPexport CC=clang export CXX=clang++ export CFLAGS="-O2 -pipe -march=x86-64-v3 -fstack-protector-strong" export CXXFLAGS="$CFLAGS" export LDFLAGS="-Wl,-O1 -Wl,--as-needed" export CPPFLAGS="-I/include" export PKG_CONFIG_PATH="/lib/pkgconfig:/usr/lib/pkgconfig" export MAKEFLAGS="-j$(nproc)" export CARGO_HOME=$SRC/.cargo export GOPATH=$SRC/.go MKPKG_IGNORE_NEW="yes" MKPKG_IGNORE_SIGNATURE="yes" # Secret key for signing (maintainers only) #MKPKG_SECRET_KEY="/etc/ports/keys/opentux.sec"