Advertisement
Guest User

Untitled

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