makepkg: Move .PKGINFO creation into a function.
[pacman-ng.git] / etc / makepkg.conf.in
blob1368ff1f81421536871ca6e93f33f3998e79dabe
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/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')
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 @CARCHFLAGS@
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)
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
50 BUILDENV=(fakeroot !distcc color !ccache)
52 #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
53 #-- specify a space-delimited list of hosts running in the DistCC cluster.
54 #DISTCC_HOSTS=""
56 #########################################################################
57 # GLOBAL PACKAGE OPTIONS
58 #   These are default values for the options=() settings
59 #########################################################################
61 # Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
62 #  A negated option will do the opposite of the comments below.
64 #-- strip:     Strip symbols from binaries/libraries in STRIP_DIRS
65 #-- docs:      Save doc directories specified by DOC_DIRS
66 #-- libtool:   Leave libtool (.la) files in packages
67 #-- emptydirs: Leave empty directories in packages
68 #-- zipman:    Compress manual (man and info) pages in MAN_DIRS with gzip
69 #-- purge:     Remove files specified by PURGE_TARGETS
71 OPTIONS=(strip docs libtool emptydirs zipman purge)
73 #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
74 INTEGRITY_CHECK=(md5)
75 #-- Manual (man and info) directories to compress (if zipman is specified)
76 MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
77 #-- Doc directories to remove (if !docs is specified)
78 DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
79 #-- Directories to be searched for the strip option (if strip is specified)
80 STRIP_DIRS=(bin lib sbin usr/{bin,lib,sbin,local/{bin,lib,sbin}} opt/*/{bin,lib,sbin})
81 #-- Files to be removed from all packages (if purge is specified)
82 PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
84 #########################################################################
85 # PACKAGE OUTPUT
86 #########################################################################
88 # Default: put built package and cached source in build directory
90 #-- Destination: specify a fixed directory where all packages will be placed
91 #PKGDEST=/home/packages
92 #-- Source cache: specify a fixed directory where source files will be cached
93 #SRCDEST=/home/sources
94 #-- Packager: name/email of the person or organization building packages
95 #PACKAGER="John Doe <john@doe.com>"
97 #########################################################################
98 # EXTENSION DEFAULTS
99 #########################################################################
101 # WARNING: Do NOT modify these variables unless you know what you are
102 #          doing.
104 PKGEXT='@PKGEXT@'
105 SRCEXT='@SRCEXT@'
107 # vim: set ft=sh ts=2 sw=2 et: