1. #
  2. # /etc/makepkg.conf
  3. #
  4.  
  5. #########################################################################
  6. # SOURCE ACQUISITION
  7. #########################################################################
  8. #
  9. #-- The download utilities that makepkg should use to acquire sources
  10. # Format: 'protocol::agent'
  11. DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
  12. 'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
  13. 'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
  14. 'rsync::/usr/bin/rsync -z %u %o'
  15. 'scp::/usr/bin/scp -C %u %o')
  16.  
  17. # Other common tools:
  18. # /usr/bin/snarf
  19. # /usr/bin/lftpget -c
  20. # /usr/bin/curl
  21.  
  22. #########################################################################
  23. # ARCHITECTURE, COMPILE FLAGS
  24. #########################################################################
  25. #
  26. CARCH="x86_64"
  27. CHOST="x86_64-unknown-linux-gnu"
  28.  
  29. #-- Exclusive: will only run on x86_64
  30. # -march (or -mcpu) builds exclusively for an architecture
  31. # -mtune optimizes for an architecture, but builds for whole processor family
  32. CFLAGS="-march=native -O2 -pipe"
  33. CXXFLAGS="${CFLAGS}"
  34. LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
  35. #-- Make Flags: change this for DistCC/SMP systems
  36. MAKEFLAGS="-j5"
  37.  
  38. #########################################################################
  39. # BUILD ENVIRONMENT
  40. #########################################################################
  41. #
  42. # Defaults: BUILDENV=(fakeroot !distcc color !ccache check)
  43. # A negated environment option will do the opposite of the comments below.
  44. #
  45. #-- fakeroot: Allow building packages as a non-root user
  46. #-- distcc: Use the Distributed C/C++/ObjC compiler
  47. #-- color: Colorize output messages
  48. #-- ccache: Use ccache to cache compilation
  49. #-- check: Run the check() function if present in the PKGBUILD
  50. #
  51. BUILDENV=(fakeroot !distcc color !ccache check)
  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. #########################################################################
  58. # GLOBAL PACKAGE OPTIONS
  59. # These are default values for the options=() settings
  60. #########################################################################
  61. #
  62. # Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
  63. # A negated option will do the opposite of the comments below.
  64. #
  65. #-- strip: Strip symbols from binaries/libraries
  66. #-- docs: Save doc directories specified by DOC_DIRS
  67. #-- libtool: Leave libtool (.la) files in packages
  68. #-- emptydirs: Leave empty directories in packages
  69. #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
  70. #-- purge: Remove files specified by PURGE_TARGETS
  71. #
  72. OPTIONS=(strip docs libtool emptydirs zipman purge)
  73.  
  74. #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
  75. INTEGRITY_CHECK=(md5)
  76. #-- Options to be used when stripping binaries. See `man strip' for details.
  77. STRIP_BINARIES="--strip-all"
  78. #-- Options to be used when stripping shared libraries. See `man strip' for details.
  79. STRIP_SHARED="--strip-unneeded"
  80. #-- Options to be used when stripping static libraries. See `man strip' for details.
  81. STRIP_STATIC="--strip-debug"
  82. #-- Manual (man and info) directories to compress (if zipman is specified)
  83. MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
  84. #-- Doc directories to remove (if !docs is specified)
  85. DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
  86. #-- Files to be removed from all packages (if purge is specified)
  87. PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
  88.  
  89. #########################################################################
  90. # PACKAGE OUTPUT
  91. #########################################################################
  92. #
  93. # Default: put built package and cached source in build directory
  94. #
  95. #-- Destination: specify a fixed directory where all packages will be placed
  96. #PKGDEST=/home/packages
  97. #-- Source cache: specify a fixed directory where source files will be cached
  98. #SRCDEST=/home/sources
  99. #-- Source packages: specify a fixed directory where all src packages will be placed
  100. #SRCPKGDEST=/home/srcpackages
  101. #-- Packager: name/email of the person or organization building packages
  102. #PACKAGER="John Doe <john@doe.com>"
  103.  
  104. #########################################################################
  105. # EXTENSION DEFAULTS
  106. #########################################################################
  107. #
  108. # WARNING: Do NOT modify these variables unless you know what you are
  109. # doing.
  110. #
  111. PKGEXT='.pkg.tar.xz'
  112. SRCEXT='.src.tar.gz'
  113.  
  114. # vim: set ft=sh ts=2 sw=2 et: