Guest User

Untitled

a guest
May 9th, 2024
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.74 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="aarch64"
  39. CHOST="aarch64-unknown-linux-gnu"
  40.  
  41. #-- Compiler and Linker Flags
  42. # -march (or -mcpu) builds exclusively for an architecture
  43. # -mtune optimizes for an architecture, but builds for whole processor family
  44. CPPFLAGS=""
  45. CFLAGS="-march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions \
  46. -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
  47. -fstack-clash-protection \
  48. -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
  49. CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
  50. #LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
  51. # -Wl,-z,pack-relative-relocs"
  52. LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
  53. LTOFLAGS=""
  54. RUSTFLAGS=""
  55. #-- Make Flags: change this for DistCC/SMP systems
  56. #MAKEFLAGS="-j2"
  57. #-- Debugging flags
  58. DEBUG_CFLAGS="-g"
  59. DEBUG_CXXFLAGS="$DEBUG_CFLAGS"
  60. DEBUG_RUSTFLAGS=""
  61.  
  62. #########################################################################
  63. # BUILD ENVIRONMENT
  64. #########################################################################
  65. #
  66. # Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign)
  67. # A negated environment option will do the opposite of the comments below.
  68. #
  69. #-- distcc: Use the Distributed C/C++/ObjC compiler
  70. #-- color: Colorize output messages
  71. #-- ccache: Use ccache to cache compilation
  72. #-- check: Run the check() function if present in the PKGBUILD
  73. #-- sign: Generate PGP signature file
  74. #
  75. BUILDENV=(!distcc color !ccache check !sign)
  76. #
  77. #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
  78. #-- specify a space-delimited list of hosts running in the DistCC cluster.
  79. #DISTCC_HOSTS=""
  80. #
  81. #-- Specify a directory for package building.
  82. #BUILDDIR=/tmp/makepkg
  83.  
  84. #########################################################################
  85. # GLOBAL PACKAGE OPTIONS
  86. # These are default values for the options=() settings
  87. #########################################################################
  88. #
  89. # Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto !autodeps)
  90. # A negated option will do the opposite of the comments below.
  91. #
  92. #-- strip: Strip symbols from binaries/libraries
  93. #-- docs: Save doc directories specified by DOC_DIRS
  94. #-- libtool: Leave libtool (.la) files in packages
  95. #-- staticlibs: Leave static library (.a) files in packages
  96. #-- emptydirs: Leave empty directories in packages
  97. #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
  98. #-- purge: Remove files specified by PURGE_TARGETS
  99. #-- debug: Add debugging flags as specified in DEBUG_* variables
  100. #-- lto: Add compile flags for building with link time optimization
  101. #-- autodeps: Automatically add depends/provides
  102. #
  103. OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto)
  104.  
  105. #-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
  106. INTEGRITY_CHECK=(sha256)
  107. #-- Options to be used when stripping binaries. See `man strip' for details.
  108. STRIP_BINARIES="--strip-all"
  109. #-- Options to be used when stripping shared libraries. See `man strip' for details.
  110. STRIP_SHARED="--strip-unneeded"
  111. #-- Options to be used when stripping static libraries. See `man strip' for details.
  112. STRIP_STATIC="--strip-debug"
  113. #-- Manual (man and info) directories to compress (if zipman is specified)
  114. MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
  115. #-- Doc directories to remove (if !docs is specified)
  116. DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
  117. #-- Files to be removed from all packages (if purge is specified)
  118. PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
  119. #-- Directory to store source code in for debug packages
  120. DBGSRCDIR="/usr/src/debug"
  121. #-- Prefix and directories for library autodeps
  122. LIB_DIRS=('lib:usr/lib')
  123.  
  124. #########################################################################
  125. # PACKAGE OUTPUT
  126. #########################################################################
  127. #
  128. # Default: put built package and cached source in build directory
  129. #
  130. #-- Destination: specify a fixed directory where all packages will be placed
  131. #PKGDEST=/home/packages
  132. #-- Source cache: specify a fixed directory where source files will be cached
  133. #SRCDEST=/home/sources
  134. #-- Source packages: specify a fixed directory where all src packages will be placed
  135. #SRCPKGDEST=/home/srcpackages
  136. #-- Log files: specify a fixed directory where all log files will be placed
  137. #LOGDEST=/home/makepkglogs
  138. #-- Packager: name/email of the person or organization building packages
  139. #PACKAGER="John Doe <[email protected]>"
  140. #-- Specify a key to use for package signing
  141. #GPGKEY=""
  142.  
  143. #########################################################################
  144. # COMPRESSION DEFAULTS
  145. #########################################################################
  146. #
  147. COMPRESSGZ=(gzip -c -f -n)
  148. COMPRESSBZ2=(bzip2 -c -f)
  149. COMPRESSXZ=(xz -c -z -)
  150. COMPRESSZST=(zstd -c -T0 --ultra -20 -)
  151. COMPRESSLRZ=(lrzip -q)
  152. COMPRESSLZO=(lzop -q)
  153. COMPRESSZ=(compress -c -f)
  154. COMPRESSLZ4=(lz4 -q)
  155. COMPRESSLZ=(lzip -c -f)
  156.  
  157. #########################################################################
  158. # EXTENSION DEFAULTS
  159. #########################################################################
  160. #
  161. PKGEXT='.pkg.tar.xz'
  162. SRCEXT='.src.tar.gz'
  163.  
  164. #########################################################################
  165. # OTHER
  166. #########################################################################
  167. #
  168. #-- Command used to run pacman as root, instead of trying sudo and su
  169. #PACMAN_AUTH=()
  170. # vim: set ft=sh ts=2 sw=2 et:
  171.  
Advertisement
Add Comment
Please, Sign In to add comment