OCaml 4.13.1 rebuild
[arch-packages.git] / pacman / trunk / makepkg.conf
blobe4033d036b3ef6cdb3b4775fa99d2daec0e6ddd6
1 #!/hint/bash
3 # /etc/makepkg.conf
6 #########################################################################
7 # SOURCE ACQUISITION
8 #########################################################################
10 #-- The download utilities that makepkg should use to acquire sources
11 # Format: 'protocol::agent'
12 DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
13 'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
14 'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
15 'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
16 'rsync::/usr/bin/rsync --no-motd -z %u %o'
17 'scp::/usr/bin/scp -C %u %o')
19 # Other common tools:
20 # /usr/bin/snarf
21 # /usr/bin/lftpget -c
22 # /usr/bin/wget
24 #-- The package required by makepkg to download VCS sources
25 # Format: 'protocol::package'
26 VCSCLIENTS=('bzr::bzr'
27 'fossil::fossil'
28 'git::git'
29 'hg::mercurial'
30 'svn::subversion')
32 #########################################################################
33 # ARCHITECTURE, COMPILE FLAGS
34 #########################################################################
36 CARCH="x86_64"
37 CHOST="x86_64-pc-linux-gnu"
39 #-- Compiler and Linker Flags
40 #CPPFLAGS=""
41 CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
42 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
43 -fstack-clash-protection -fcf-protection"
44 CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
45 LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
46 #RUSTFLAGS="-C opt-level=2"
47 #-- Make Flags: change this for DistCC/SMP systems
48 #MAKEFLAGS="-j2"
49 #-- Debugging flags
50 DEBUG_CFLAGS="-g -fvar-tracking-assignments"
51 DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
52 #DEBUG_RUSTFLAGS="-C debuginfo=2"
54 #########################################################################
55 # BUILD ENVIRONMENT
56 #########################################################################
58 # Makepkg defaults: BUILDENV=(!distcc !color !ccache check !sign)
59 # A negated environment option will do the opposite of the comments below.
61 #-- distcc: Use the Distributed C/C++/ObjC compiler
62 #-- color: Colorize output messages
63 #-- ccache: Use ccache to cache compilation
64 #-- check: Run the check() function if present in the PKGBUILD
65 #-- sign: Generate PGP signature file
67 BUILDENV=(!distcc color !ccache check !sign)
69 #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
70 #-- specify a space-delimited list of hosts running in the DistCC cluster.
71 #DISTCC_HOSTS=""
73 #-- Specify a directory for package building.
74 #BUILDDIR=/tmp/makepkg
76 #########################################################################
77 # GLOBAL PACKAGE OPTIONS
78 # These are default values for the options=() settings
79 #########################################################################
81 # Makepkg defaults: OPTIONS=(!strip docs libtool staticlibs emptydirs !zipman !purge !debug !lto)
82 # A negated option will do the opposite of the comments below.
84 #-- strip: Strip symbols from binaries/libraries
85 #-- docs: Save doc directories specified by DOC_DIRS
86 #-- libtool: Leave libtool (.la) files in packages
87 #-- staticlibs: Leave static library (.a) files in packages
88 #-- emptydirs: Leave empty directories in packages
89 #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
90 #-- purge: Remove files specified by PURGE_TARGETS
91 #-- debug: Add debugging flags as specified in DEBUG_* variables
92 #-- lto: Add compile flags for building with link time optimization
94 OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto)
96 #-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
97 INTEGRITY_CHECK=(sha256)
98 #-- Options to be used when stripping binaries. See `man strip' for details.
99 STRIP_BINARIES="--strip-all"
100 #-- Options to be used when stripping shared libraries. See `man strip' for details.
101 STRIP_SHARED="--strip-unneeded"
102 #-- Options to be used when stripping static libraries. See `man strip' for details.
103 STRIP_STATIC="--strip-debug"
104 #-- Manual (man and info) directories to compress (if zipman is specified)
105 MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
106 #-- Doc directories to remove (if !docs is specified)
107 DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
108 #-- Files to be removed from all packages (if purge is specified)
109 PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
110 #-- Directory to store source code in for debug packages
111 DBGSRCDIR="/usr/src/debug"
113 #########################################################################
114 # PACKAGE OUTPUT
115 #########################################################################
117 # Default: put built package and cached source in build directory
119 #-- Destination: specify a fixed directory where all packages will be placed
120 #PKGDEST=/home/packages
121 #-- Source cache: specify a fixed directory where source files will be cached
122 #SRCDEST=/home/sources
123 #-- Source packages: specify a fixed directory where all src packages will be placed
124 #SRCPKGDEST=/home/srcpackages
125 #-- Log files: specify a fixed directory where all log files will be placed
126 #LOGDEST=/home/makepkglogs
127 #-- Packager: name/email of the person or organization building packages
128 #PACKAGER="John Doe <john@doe.com>"
129 #-- Specify a key to use for package signing
130 #GPGKEY=""
132 #########################################################################
133 # COMPRESSION DEFAULTS
134 #########################################################################
136 COMPRESSGZ=(gzip -c -f -n)
137 COMPRESSBZ2=(bzip2 -c -f)
138 COMPRESSXZ=(xz -c -z -)
139 COMPRESSZST=(zstd -c -z -q -)
140 COMPRESSLRZ=(lrzip -q)
141 COMPRESSLZO=(lzop -q)
142 COMPRESSZ=(compress -c -f)
143 COMPRESSLZ4=(lz4 -q)
144 COMPRESSLZ=(lzip -c -f)
146 #########################################################################
147 # EXTENSION DEFAULTS
148 #########################################################################
150 PKGEXT='.pkg.tar.zst'
151 SRCEXT='.src.tar.gz'
153 #########################################################################
154 # OTHER
155 #########################################################################
157 #-- Command used to run pacman as root, instead of trying sudo and su
158 #PACMAN_AUTH=()