Advertisement
Guest User

makepkg config

a guest
Apr 7th, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.37 KB | None | 0 0
  1. #!/hint/bash
  2. #
  3. # /etc/makepkg.conf
  4. #
  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 -gqC - -o %o %u'
  13. 'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
  14. 'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
  15. 'https::/usr/bin/curl -gqb "" -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.  
  19. # Other common tools:
  20. # /usr/bin/snarf
  21. # /usr/bin/lftpget -c
  22. # /usr/bin/wget
  23.  
  24. #-- The package required by makepkg to download VCS sources
  25. # Format: 'protocol::package'
  26. VCSCLIENTS=('bzr::bzr'
  27. 'fossil::fossil'
  28. 'git::git'
  29. 'hg::mercurial'
  30. 'svn::subversion')
  31.  
  32. #########################################################################
  33. # ARCHITECTURE, COMPILE FLAGS
  34. #########################################################################
  35. #
  36. CARCH="x86_64"
  37. CHOST="x86_64-pc-linux-gnu"
  38.  
  39. #-- Compiler and Linker Flags
  40. CFLAGS="-march=native -O2 -pipe -fno-plt"
  41. CPPFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=2"
  42. CXXFLAGS="${CFLAGS}"
  43. LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
  44. RUSTFLAGS="-C opt-level=2 -C target-cpu=native -C debuginfo=0"
  45. #-- Make Flags: change this for DistCC/SMP systems
  46. MAKEFLAGS="-j$(nproc)"
  47. #-- Debugging flags
  48. DEBUG_CFLAGS="-g -fvar-tracking-assignments"
  49. DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
  50. DEBUG_RUSTFLAGS="-C debuginfo=2"
  51.  
  52. #########################################################################
  53. # BUILD ENVIRONMENT
  54. #########################################################################
  55. #
  56. # Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign)
  57. # A negated environment option will do the opposite of the comments below.
  58. #
  59. #-- distcc: Use the Distributed C/C++/ObjC compiler
  60. #-- color: Colorize output messages
  61. #-- ccache: Use ccache to cache compilation
  62. #-- check: Run the check() function if present in the PKGBUILD
  63. #-- sign: Generate PGP signature file
  64. #
  65. #note: gcc is wrapped by ccache through symlinks; we don't need to specify it here
  66. BUILDENV=(!distcc color !ccache check !sign)
  67. #
  68. #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
  69. #-- specify a space-delimited list of hosts running in the DistCC cluster.
  70. #DISTCC_HOSTS=""
  71. #
  72. #-- Specify a directory for package building.
  73.  
  74. #↓for when pkg is too large for /tmp
  75. #BUILDDIR=/data/makepkg
  76. #↓for any other time
  77. BUILDDIR=/tmp/makepkg
  78.  
  79. #########################################################################
  80. # GLOBAL PACKAGE OPTIONS
  81. # These are default values for the options=() settings
  82. #########################################################################
  83. #
  84. # Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto)
  85. # A negated option will do the opposite of the comments below.
  86. #
  87. #-- strip: Strip symbols from binaries/libraries
  88. #-- docs: Save doc directories specified by DOC_DIRS
  89. #-- libtool: Leave libtool (.la) files in packages
  90. #-- staticlibs: Leave static library (.a) files in packages
  91. #-- emptydirs: Leave empty directories in packages
  92. #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
  93. #-- purge: Remove files specified by PURGE_TARGETS
  94. #-- debug: Add debugging flags as specified in DEBUG_* variables
  95. #-- lto: Add compile flags for building with link time optimization
  96. #
  97. OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
  98.  
  99. #-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
  100. INTEGRITY_CHECK=(sha256)
  101. #-- Options to be used when stripping binaries. See `man strip' for details.
  102. STRIP_BINARIES="--strip-all"
  103. #-- Options to be used when stripping shared libraries. See `man strip' for details.
  104. STRIP_SHARED="--strip-unneeded"
  105. #-- Options to be used when stripping static libraries. See `man strip' for details.
  106. STRIP_STATIC="--strip-debug"
  107. #-- Manual (man and info) directories to compress (if zipman is specified)
  108. MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
  109. #-- Doc directories to remove (if !docs is specified)
  110. DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
  111. #-- Files to be removed from all packages (if purge is specified)
  112. PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
  113. #-- Directory to store source code in for debug packages
  114. DBGSRCDIR="/usr/src/debug"
  115.  
  116. #########################################################################
  117. # PACKAGE OUTPUT
  118. #########################################################################
  119. #
  120. # Default: put built package and cached source in build directory
  121. #
  122. #-- Destination: specify a fixed directory where all packages will be placed
  123. #PKGDEST=/home/packages
  124. #-- Source cache: specify a fixed directory where source files will be cached
  125. #SRCDEST=/home/sources
  126. #-- Source packages: specify a fixed directory where all src packages will be placed
  127. #SRCPKGDEST=/home/srcpackages
  128. #-- Log files: specify a fixed directory where all log files will be placed
  129. #LOGDEST=/home/makepkglogs
  130. #-- Packager: name/email of the person or organization building packages
  131. #PACKAGER="John Doe <john@doe.com>"
  132. #-- Specify a key to use for package signing
  133. #GPGKEY=""
  134.  
  135. #########################################################################
  136. # COMPRESSION DEFAULTS
  137. #########################################################################
  138. #
  139. COMPRESSGZ=(pigz -c -f -n)
  140. COMPRESSBZ2=(pbzip2 -c -f)
  141. COMPRESSXZ=(xz -c -z --threads=4 -)
  142. COMPRESSZST=(zstd -c -z -q --fast -T4 -)
  143. COMPRESSLRZ=(lrzip -q)
  144. COMPRESSLZO=(lzop -q)
  145. COMPRESSZ=(compress -c -f)
  146. COMPRESSLZ4=(lz4 -q)
  147. COMPRESSLZ=(lzip -c -f)
  148.  
  149. #########################################################################
  150. # EXTENSION DEFAULTS
  151. #########################################################################
  152. #
  153. PKGEXT='.pkg.tar.zst'
  154. SRCEXT='.src.tar.gz'
  155.  
  156. #########################################################################
  157. # OTHER
  158. #########################################################################
  159. #
  160. #-- Command used to run pacman as root, instead of trying sudo and su
  161. #PACMAN_AUTH=()
  162.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement