preload-hacks: Some patches to make it work.
[termux-packages] / disabled-packages / pacman / makepkg.conf
CommitLineData
3888e4cd
FD
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'
11DLAGENTS=('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'
24VCSCLIENTS=('bzr::bzr'
25 'git::git'
26 'hg::mercurial'
27 'svn::subversion')
28
29#########################################################################
30# ARCHITECTURE, COMPILE FLAGS
31#########################################################################
32#
33CARCH="@CARCH@"
34CHOST="@CHOST@"
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
39CPPFLAGS="-D_FORTIFY_SOURCE=2"
40CFLAGS="@CARCHFLAGS@ -mtune=generic -O2 -pipe -fstack-protector-strong"
41CXXFLAGS="@CARCHFLAGS@ -mtune=generic -O2 -pipe -fstack-protector-strong"
42LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
43#-- Make Flags: change this for DistCC/SMP systems
44#MAKEFLAGS="-j2"
45#-- Debugging flags
46DEBUG_CFLAGS="-g -fvar-tracking-assignments"
47DEBUG_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#
62BUILDENV=(!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 !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#-- upx: Compress binary executable files using UPX
87#-- debug: Add debugging flags as specified in DEBUG_* variables
88#
89OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
90
91#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
92INTEGRITY_CHECK=(md5)
93#-- Options to be used when stripping binaries. See `man strip' for details.
94STRIP_BINARIES="--strip-all"
95#-- Options to be used when stripping shared libraries. See `man strip' for details.
96STRIP_SHARED="--strip-unneeded"
97#-- Options to be used when stripping static libraries. See `man strip' for details.
98STRIP_STATIC="--strip-debug"
99#-- Manual (man and info) directories to compress (if zipman is specified)
100MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
101#-- Doc directories to remove (if !docs is specified)
102DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
103#-- Files to be removed from all packages (if purge is specified)
104PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
105
106#########################################################################
107# PACKAGE OUTPUT
108#########################################################################
109#
110# Default: put built package and cached source in build directory
111#
112#-- Destination: specify a fixed directory where all packages will be placed
113#PKGDEST=/home/packages
114#-- Source cache: specify a fixed directory where source files will be cached
115#SRCDEST=/home/sources
116#-- Source packages: specify a fixed directory where all src packages will be placed
117#SRCPKGDEST=/home/srcpackages
118#-- Log files: specify a fixed directory where all log files will be placed
119#LOGDEST=/home/makepkglogs
120#-- Packager: name/email of the person or organization building packages
121#PACKAGER="John Doe <john@doe.com>"
122#-- Specify a key to use for package signing
123#GPGKEY=""
124
125#########################################################################
126# COMPRESSION DEFAULTS
127#########################################################################
128#
129COMPRESSGZ=(gzip -c -f -n)
130COMPRESSBZ2=(bzip2 -c -f)
131COMPRESSXZ=(xz -c -z -)
132COMPRESSLRZ=(lrzip -q)
133COMPRESSLZO=(lzop -q)
134COMPRESSZ=(compress -c -f)
135
136#########################################################################
137# EXTENSION DEFAULTS
138#########################################################################
139#
140# WARNING: Do NOT modify these variables unless you know what you are
141# doing.
142#
143PKGEXT='.pkg.tar.xz'
144SRCEXT='.src.tar.gz'
145
146# vim: set ft=sh ts=2 sw=2 et: