daily pastebin goal
79%
SHARE
TWEET

Untitled

a guest Jan 13th, 2018 258 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
  12.           'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
  13.           'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
  14.           'rsync::/usr/bin/rsync --no-motd -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/wget
  21.  
  22. #-- The package required by makepkg to download VCS sources
  23. #  Format: 'protocol::package'
  24. VCSCLIENTS=('bzr::bzr'
  25.             'git::git'
  26.             'hg::mercurial'
  27.             'svn::subversion')
  28.  
  29. #########################################################################
  30. # ARCHITECTURE, COMPILE FLAGS
  31. #########################################################################
  32. #
  33. CARCH="x86_64"
  34. CHOST="x86_64-pc-linux-gnu"
  35.  
  36. #-- Compiler and Linker Flags
  37. # -march (or -mcpu) builds exclusively for an architecture
  38. # -mtune optimizes for an architecture, but builds for whole processor family
  39. CPPFLAGS="-D_FORTIFY_SOURCE=2"
  40. CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"
  41. CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"
  42. LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
  43. #-- Make Flags: change this for DistCC/SMP systems
  44. #MAKEFLAGS="-j2"
  45. #-- Debugging flags
  46. DEBUG_CFLAGS="-g -fvar-tracking-assignments"
  47. DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
  48.  
  49. #########################################################################
  50. # BUILD ENVIRONMENT
  51. #########################################################################
  52. #
  53. # Defaults: BUILDENV=(!distcc color !ccache check !sign)
  54. #  A negated environment option will do the opposite of the comments below.
  55. #
  56. #-- distcc:   Use the Distributed C/C++/ObjC compiler
  57. #-- color:    Colorize output messages
  58. #-- ccache:   Use ccache to cache compilation
  59. #-- check:    Run the check() function if present in the PKGBUILD
  60. #-- sign:     Generate PGP signature file
  61. #
  62. BUILDENV=(!distcc color !ccache check !sign)
  63. #
  64. #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
  65. #-- specify a space-delimited list of hosts running in the DistCC cluster.
  66. #DISTCC_HOSTS=""
  67. #
  68. #-- Specify a directory for package building.
  69. #BUILDDIR=/tmp/makepkg
  70.  
  71. #########################################################################
  72. # GLOBAL PACKAGE OPTIONS
  73. #   These are default values for the options=() settings
  74. #########################################################################
  75. #
  76. # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug)
  77. #  A negated option will do the opposite of the comments below.
  78. #
  79. #-- strip:      Strip symbols from binaries/libraries
  80. #-- docs:       Save doc directories specified by DOC_DIRS
  81. #-- libtool:    Leave libtool (.la) files in packages
  82. #-- staticlibs: Leave static library (.a) files in packages
  83. #-- emptydirs:  Leave empty directories in packages
  84. #-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
  85. #-- purge:      Remove files specified by PURGE_TARGETS
  86. #-- optipng: Optimize PNG images with optipng
  87. #-- upx:        Compress binary executable files using UPX
  88. #-- debug:      Add debugging flags as specified in DEBUG_* variables
  89. #
  90. OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug)
  91.  
  92. #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
  93. INTEGRITY_CHECK=(md5)
  94. #-- Options to be used when stripping binaries. See `man strip' for details.
  95. STRIP_BINARIES="--strip-all"
  96. #-- Options to be used when stripping shared libraries. See `man strip' for details.
  97. STRIP_SHARED="--strip-unneeded"
  98. #-- Options to be used when stripping static libraries. See `man strip' for details.
  99. STRIP_STATIC="--strip-debug"
  100. #-- Manual (man and info) directories to compress (if zipman is specified)
  101. MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
  102. #-- Doc directories to remove (if !docs is specified)
  103. DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
  104. #-- Files to be removed from all packages (if purge is specified)
  105. PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
  106.  
  107. #########################################################################
  108. # PACKAGE OUTPUT
  109. #########################################################################
  110. #
  111. # Default: put built package and cached source in build directory
  112. #
  113. #-- Destination: specify a fixed directory where all packages will be placed
  114. #PKGDEST=/home/packages
  115. #-- Source cache: specify a fixed directory where source files will be cached
  116. #SRCDEST=/home/sources
  117. #-- Source packages: specify a fixed directory where all src packages will be placed
  118. #SRCPKGDEST=/home/srcpackages
  119. #-- Log files: specify a fixed directory where all log files will be placed
  120. #LOGDEST=/home/makepkglogs
  121. #-- Packager: name/email of the person or organization building packages
  122. #PACKAGER="John Doe <john@doe.com>"
  123. #-- Specify a key to use for package signing
  124. #GPGKEY=""
  125.  
  126. #########################################################################
  127. # COMPRESSION DEFAULTS
  128. #########################################################################
  129. #
  130. COMPRESSGZ=(gzip -c -f -n)
  131. COMPRESSBZ2=(bzip2 -c -f)
  132. COMPRESSXZ=(xz -c -z -)
  133. COMPRESSLRZ=(lrzip -q)
  134. COMPRESSLZO=(lzop -q)
  135. COMPRESSZ=(compress -c -f)
  136.  
  137. #########################################################################
  138. # EXTENSION DEFAULTS
  139. #########################################################################
  140. #
  141. # WARNING: Do NOT modify these variables unless you know what you are
  142. #          doing.
  143. #
  144. PKGEXT='.pkg.tar.xz'
  145. SRCEXT='.src.tar.gz'
  146.  
  147. # vim: set ft=sh ts=2 sw=2 et:
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top