makepkg-x86_64.conf 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. #
  2. # /etc/makepkg.conf
  3. #
  4. #########################################################################
  5. # SOURCE ACQUISITION
  6. #########################################################################
  7. #
  8. #-- The download utilities that makepkg should use to acquire sources
  9. # Format: 'protocol::agent'
  10. DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
  11. 'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
  12. 'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
  13. 'rsync::/usr/bin/rsync --no-motd -z %u %o'
  14. 'scp::/usr/bin/scp -C %u %o')
  15. # Other common tools:
  16. # /usr/bin/snarf
  17. # /usr/bin/lftpget -c
  18. # /usr/bin/wget
  19. #########################################################################
  20. # ARCHITECTURE, COMPILE FLAGS
  21. #########################################################################
  22. #
  23. CARCH="x86-64"
  24. CHOST="x86-64-pc-linux-gnu"
  25. #-- Compiler and Linker Flags
  26. # -march (or -mcpu) builds exclusively for an architecture
  27. # -mtune optimizes for an architecture, but builds for whole processor family
  28. CPPFLAGS="-D_FORTIFY_SOURCE=2"
  29. CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
  30. CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
  31. LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
  32. #-- Make Flags: change this for DistCC/SMP systems
  33. #MAKEFLAGS="-j2"
  34. #-- Debugging flags
  35. DEBUG_CFLAGS="-g -fvar-tracking-assignments"
  36. DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
  37. #########################################################################
  38. # BUILD ENVIRONMENT
  39. #########################################################################
  40. #
  41. # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
  42. # A negated environment option will do the opposite of the comments below.
  43. #
  44. #-- fakeroot: Allow building packages as a non-root user
  45. #-- distcc: Use the Distributed C/C++/ObjC compiler
  46. #-- color: Colorize output messages
  47. #-- ccache: Use ccache to cache compilation
  48. #-- check: Run the check() function if present in the PKGBUILD
  49. #-- sign: Generate PGP signature file
  50. #
  51. BUILDENV=(fakeroot !distcc color !ccache check !sign)
  52. #
  53. #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
  54. #-- specify a space-delimited list of hosts running in the DistCC cluster.
  55. #DISTCC_HOSTS=""
  56. #
  57. #-- Specify a directory for package building.
  58. #BUILDDIR=/tmp/makepkg
  59. #########################################################################
  60. # GLOBAL PACKAGE OPTIONS
  61. # These are default values for the options=() settings
  62. #########################################################################
  63. #
  64. # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
  65. # A negated option will do the opposite of the comments below.
  66. #
  67. #-- strip: Strip symbols from binaries/libraries
  68. #-- docs: Save doc directories specified by DOC_DIRS
  69. #-- libtool: Leave libtool (.la) files in packages
  70. #-- staticlibs: Leave static library (.a) files in packages
  71. #-- emptydirs: Leave empty directories in packages
  72. #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
  73. #-- purge: Remove files specified by PURGE_TARGETS
  74. #-- upx: Compress binary executable files using UPX
  75. #-- debug: Add debugging flags as specified in DEBUG_* variables
  76. #
  77. OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
  78. #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
  79. INTEGRITY_CHECK=(md5)
  80. #-- Options to be used when stripping binaries. See `man strip' for details.
  81. STRIP_BINARIES="--strip-all"
  82. #-- Options to be used when stripping shared libraries. See `man strip' for details.
  83. STRIP_SHARED="--strip-unneeded"
  84. #-- Options to be used when stripping static libraries. See `man strip' for details.
  85. STRIP_STATIC="--strip-debug"
  86. #-- Manual (man and info) directories to compress (if zipman is specified)
  87. MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
  88. #-- Doc directories to remove (if !docs is specified)
  89. DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
  90. #-- Files to be removed from all packages (if purge is specified)
  91. PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
  92. #########################################################################
  93. # PACKAGE OUTPUT
  94. #########################################################################
  95. #
  96. # Default: put built package and cached source in build directory
  97. #
  98. #-- Destination: specify a fixed directory where all packages will be placed
  99. #PKGDEST=/home/packages
  100. #-- Source cache: specify a fixed directory where source files will be cached
  101. #SRCDEST=/home/sources
  102. #-- Source packages: specify a fixed directory where all src packages will be placed
  103. #SRCPKGDEST=/home/srcpackages
  104. #-- Log files: specify a fixed directory where all log files will be placed
  105. #LOGDEST=/home/makepkglogs
  106. #-- Packager: name/email of the person or organization building packages
  107. #PACKAGER="John Doe <[email protected]>"
  108. #-- Specify a key to use for package signing
  109. #GPGKEY=""
  110. #########################################################################
  111. # COMPRESSION DEFAULTS
  112. #########################################################################
  113. #
  114. COMPRESSGZ=(gzip -c -f -n)
  115. COMPRESSBZ2=(bzip2 -c -f)
  116. COMPRESSXZ=(xz -c -z -)
  117. COMPRESSLRZ=(lrzip -q)
  118. COMPRESSLZO=(lzop -q)
  119. COMPRESSZ=(compress -c -f)
  120. #########################################################################
  121. # EXTENSION DEFAULTS
  122. #########################################################################
  123. #
  124. # WARNING: Do NOT modify these variables unless you know what you are
  125. # doing.
  126. #
  127. PKGEXT='.pkg.tar.xz'
  128. SRCEXT='.src.tar.gz'
  129. # vim: set ft=sh ts=2 sw=2 et: