Was supposed to be a linux distribution, now just a collection of build scripts for packages on top of (ideally) any distribution.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

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'
header_end
# Fix paths
sed -i -e "s/\/etc\/astronaut.conf/$(safe_sed "/$dir_prefix/$dir_sysconfdir/astronaut.conf")/g" astronaut
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" astronaut
# Optional helper tools
if option helpers; then
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" astrohelp freshnaut
fi
# Wrappers for specific package managers
option xbps install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" xbps-astronaut
option pacman install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" pacman-astronaut
option pkgtools install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" astronautpkg
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: