makepkg: Add UPX compression support
[pacman-ng.git] / etc / makepkg.conf.in
blob42ae9405cddd764fb00acf4f50263f6bf36f5b15
2 # @sysconfdir@/makepkg.conf
5 #########################################################################
6 # SOURCE ACQUISITION
7 #########################################################################
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 -z %u %o'
15           'scp::/usr/bin/scp -C %u %o')
17 # Other common tools:
18 # /usr/bin/snarf
19 # /usr/bin/lftpget -c
20 # /usr/bin/curl
22 #########################################################################
23 # ARCHITECTURE, COMPILE FLAGS
24 #########################################################################
26 CARCH="@CARCH@"
27 CHOST="@CHOST@"
29 #-- Exclusive: will only run on @CARCH@
30 # -march (or -mcpu) builds exclusively for an architecture
31 # -mtune optimizes for an architecture, but builds for whole processor family
32 CFLAGS="@CARCHFLAGS@-mtune=generic -O2 -pipe"
33 CXXFLAGS="@CARCHFLAGS@-mtune=generic -O2 -pipe"
34 #LDFLAGS=""
35 #-- Make Flags: change this for DistCC/SMP systems
36 #MAKEFLAGS="-j2"
38 #########################################################################
39 # BUILD ENVIRONMENT
40 #########################################################################
42 # Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
43 #  A negated environment option will do the opposite of the comments below.
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 #-- sign:     Generate PGP signature file
52 BUILDENV=(fakeroot !distcc color !ccache check !sign)
54 #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
55 #-- specify a space-delimited list of hosts running in the DistCC cluster.
56 #DISTCC_HOSTS=""
58 #########################################################################
59 # GLOBAL PACKAGE OPTIONS
60 #   These are default values for the options=() settings
61 #########################################################################
63 # Default: OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
64 #  A negated option will do the opposite of the comments below.
66 #-- strip:     Strip symbols from binaries/libraries
67 #-- docs:      Save doc directories specified by DOC_DIRS
68 #-- libtool:   Leave libtool (.la) files in packages
69 #-- emptydirs: Leave empty directories in packages
70 #-- zipman:    Compress manual (man and info) pages in MAN_DIRS with gzip
71 #-- purge:     Remove files specified by PURGE_TARGETS
72 #-- upx:       Compress binary executable files using UPX
74 OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
76 #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
77 INTEGRITY_CHECK=(md5)
78 #-- Options to be used when stripping binaries. See `man strip' for details.
79 STRIP_BINARIES="@STRIP_BINARIES@"
80 #-- Options to be used when stripping shared libraries. See `man strip' for details.
81 STRIP_SHARED="@STRIP_SHARED@"
82 #-- Options to be used when stripping static libraries. See `man strip' for details.
83 STRIP_STATIC="@STRIP_STATIC@"
84 #-- Manual (man and info) directories to compress (if zipman is specified)
85 MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
86 #-- Doc directories to remove (if !docs is specified)
87 DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
88 #-- Files to be removed from all packages (if purge is specified)
89 PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
91 #########################################################################
92 # PACKAGE OUTPUT
93 #########################################################################
95 # Default: put built package and cached source in build directory
97 #-- Destination: specify a fixed directory where all packages will be placed
98 #PKGDEST=/home/packages
99 #-- Source cache: specify a fixed directory where source files will be cached
100 #SRCDEST=/home/sources
101 #-- Source packages: specify a fixed directory where all src packages will be placed
102 #SRCPKGDEST=/home/srcpackages
103 #-- Packager: name/email of the person or organization building packages
104 #PACKAGER="John Doe <john@doe.com>"
105 #-- Specify a key to use for package signing
106 #GPGKEY=""
108 #########################################################################
109 # EXTENSION DEFAULTS
110 #########################################################################
112 # WARNING: Do NOT modify these variables unless you know what you are
113 #          doing.
115 PKGEXT='@PKGEXT@'
116 SRCEXT='@SRCEXT@'
118 # vim: set ft=sh ts=2 sw=2 et: