name=astronaut version=$(date +%Y%m%d) define_option '!helpers: Enable installation of helper scripts' define_option '!xbps: Enable installation of the xbps-astronaut wrapper' define_option '!pacman: Enable installation of the pacman-astronaut wrapper' define_option '!pkgtools: Enable installation of the astronautpkg wrapper' extrafile 'astronaut' if option helpers; then extrafile 'astrohelp' extrafile 'freshnaut' fi option xbps extrafile 'xbps-astronaut' option pacman extrafile 'pacman-astronaut' option pkgtools extrafile 'astronautpkg' _ # Fix paths sed -i -e "s/\/etc\/astronaut.conf/$(safe_sed "/$dir_prefix/$dir_sysconf/astronaut.conf")/g" astronaut install -Dm755 -t "$dir_install/$dir_prefix/$dir_bin" astronaut # Optional helper tools if option helpers; then install -Dm755 -t "$dir_install/$dir_prefix/$dir_bin" astrohelp freshnaut fi # Wrappers for specific package managers option xbps install -Dm755 -t "$dir_install/$dir_prefix/$dir_bin" xbps-astronaut option pacman install -Dm755 -t "$dir_install/$dir_prefix/$dir_bin" pacman-astronaut option pkgtools install -Dm755 -t "$dir_install/$dir_prefix/$dir_bin" astronautpkg # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: