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