makepkg.conf.in 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. #!/hint/bash
  2. # shellcheck disable=2034
  3. #
  4. # /etc/makepkg.conf
  5. #
  6. #########################################################################
  7. # SOURCE ACQUISITION
  8. #########################################################################
  9. #
  10. #-- The download utilities that makepkg should use to acquire sources
  11. # Format: 'protocol::agent'
  12. DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
  13. 'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
  14. 'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
  15. 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
  16. 'rsync::/usr/bin/rsync --no-motd -z %u %o'
  17. 'scp::/usr/bin/scp -C %u %o')
  18. # Other common tools:
  19. # /usr/bin/snarf
  20. # /usr/bin/lftpget -c
  21. # /usr/bin/wget
  22. #-- The package required by makepkg to download VCS sources
  23. # Format: 'protocol::package'
  24. VCSCLIENTS=('bzr::breezy'
  25. 'fossil::fossil'
  26. 'git::git'
  27. 'hg::mercurial'
  28. 'svn::subversion')
  29. #########################################################################
  30. # ARCHITECTURE, COMPILE FLAGS
  31. #########################################################################
  32. #
  33. CARCH="@CARCH@"
  34. CHOST="@CHOST@"
  35. #-- Compiler and Linker Flags
  36. #CPPFLAGS=""
  37. CFLAGS="@CFLAGS@"
  38. CXXFLAGS="@CXXFLAGS@"
  39. LDFLAGS="@LDFLAGS@"
  40. LTOFLAGS="@LTOFLAGS@"
  41. RUSTFLAGS="@RUSTFLAGS@"
  42. #-- Make Flags: change this for DistCC/SMP systems
  43. #MAKEFLAGS="-j2"
  44. #-- Debugging flags
  45. DEBUG_CFLAGS="@DBGFLAGS@"
  46. DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
  47. DEBUG_RUSTFLAGS="@DBGRUSTFLAGS@"
  48. #########################################################################
  49. # BUILD ENVIRONMENT
  50. #########################################################################
  51. #
  52. # Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign)
  53. # A negated environment option will do the opposite of the comments below.
  54. #
  55. #-- distcc: Use the Distributed C/C++/ObjC compiler
  56. #-- color: Colorize output messages
  57. #-- ccache: Use ccache to cache compilation
  58. #-- check: Run the check() function if present in the PKGBUILD
  59. #-- sign: Generate PGP signature file
  60. #
  61. BUILDENV=(!distcc color !ccache check !sign)
  62. #
  63. #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
  64. #-- specify a space-delimited list of hosts running in the DistCC cluster.
  65. #DISTCC_HOSTS=""
  66. #
  67. #-- Specify a directory for package building.
  68. #BUILDDIR=/tmp/makepkg
  69. #########################################################################
  70. # GLOBAL PACKAGE OPTIONS
  71. # These are default values for the options=() settings
  72. #########################################################################
  73. #
  74. # Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto !autodeps)
  75. # A negated option will do the opposite of the comments below.
  76. #
  77. #-- strip: Strip symbols from binaries/libraries
  78. #-- docs: Save doc directories specified by DOC_DIRS
  79. #-- libtool: Leave libtool (.la) files in packages
  80. #-- staticlibs: Leave static library (.a) files in packages
  81. #-- emptydirs: Leave empty directories in packages
  82. #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
  83. #-- purge: Remove files specified by PURGE_TARGETS
  84. #-- debug: Add debugging flags as specified in DEBUG_* variables
  85. #-- lto: Add compile flags for building with link time optimization
  86. #-- autodeps: Automatically add depends/provides
  87. #
  88. OPTIONS=(@OPTIONS@)
  89. #-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
  90. INTEGRITY_CHECK=(sha256)
  91. #-- Options to be used when stripping binaries. See `man strip' for details.
  92. STRIP_BINARIES="--strip-all"
  93. #-- Options to be used when stripping shared libraries. See `man strip' for details.
  94. STRIP_SHARED="--strip-unneeded"
  95. #-- Options to be used when stripping static libraries. See `man strip' for details.
  96. STRIP_STATIC="--strip-debug"
  97. #-- Manual (man and info) directories to compress (if zipman is specified)
  98. MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
  99. #-- Doc directories to remove (if !docs is specified)
  100. DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
  101. #-- Files to be removed from all packages (if purge is specified)
  102. PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
  103. #-- Directory to store source code in for debug packages
  104. DBGSRCDIR="/usr/src/debug"
  105. #-- Prefix and directories for library autodeps
  106. LIB_DIRS=(@LIBDIRS@)
  107. #########################################################################
  108. # PACKAGE OUTPUT
  109. #########################################################################
  110. #
  111. # Default: put built package and cached source in build directory
  112. #
  113. #-- Destination: specify a fixed directory where all packages will be placed
  114. #PKGDEST=/home/packages
  115. #-- Source cache: specify a fixed directory where source files will be cached
  116. #SRCDEST=/home/sources
  117. #-- Source packages: specify a fixed directory where all src packages will be placed
  118. #SRCPKGDEST=/home/srcpackages
  119. #-- Log files: specify a fixed directory where all log files will be placed
  120. #LOGDEST=/home/makepkglogs
  121. #-- Packager: name/email of the person or organization building packages
  122. #PACKAGER="John Doe <john@doe.com>"
  123. #-- Specify a key to use for package signing
  124. #GPGKEY=""
  125. #########################################################################
  126. # COMPRESSION DEFAULTS
  127. #########################################################################
  128. #
  129. COMPRESSGZ=(gzip -c -f -n)
  130. COMPRESSBZ2=(bzip2 -c -f)
  131. COMPRESSXZ=(xz -c -z -)
  132. COMPRESSZST=(zstd -c @ZSTDFLAGS@ -)
  133. COMPRESSLRZ=(lrzip -q)
  134. COMPRESSLZO=(lzop -q)
  135. COMPRESSZ=(compress -c -f)
  136. COMPRESSLZ4=(lz4 -q)
  137. COMPRESSLZ=(lzip -c -f)
  138. #########################################################################
  139. # EXTENSION DEFAULTS
  140. #########################################################################
  141. #
  142. PKGEXT='.pkg.tar.zst'
  143. SRCEXT='.src.tar.gz'
  144. #########################################################################
  145. # OTHER
  146. #########################################################################
  147. #
  148. #-- Command used to run pacman as root, instead of trying sudo and su
  149. #PACMAN_AUTH=()
  150. # vim: set ft=sh ts=2 sw=2 et: