# Setup: mkdir -p /var/cache/astronaut && chmod a+wt /var/cache/astronaut dir_build="/tmp/astronaut.$(id -u)/build" dir_install="/tmp/astronaut.$(id -u)/install" dir_source='/var/cache/astronaut' [ "$(uname -m)" = "x86_64" ] && dir_libdir='lib64' dir_sysconfdir='../etc' dir_mandir='man' dir_docdir='doc' dir_infodir='info' export LDFLAGS="-L/$dir_prefix/$dir_libdir" options='patch,!pulseaudio,!gtk3,!pam' package_options() { case "$1" in astronaut) echo 'pkgtools,helpers' ;; i3) echo 'gaps,window-icons' ;; hostapd) echo 'rtlxdrv' ;; python3) echo '!2to3-symlink' ;; python3-setuptools) echo '!easy_install-symlink' ;; wine) echo 'wine32=lib' ;; ffmpeg) echo 'gnutls,libvpx,libvorbis,libass' ;; virtualbox) echo '!docs' ;; nxengine-evo) echo 'console_key=-' ;; esac } export CFLAGS='-march=native -pipe -O3' export CXXFLAGS="$CFLAGS" export MAKEFLAGS="${MAKEFLAGS:--j $(grep processor /proc/cpuinfo | wc -l)}" export WAFFLAGS="$MAKEFLAGS" export BAMFLAGS="$MAKEFLAGS"