makepkg.conf.in 5.7 KB

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