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.

24 lines
805 B

#!/bin/sh -e
# A hacky script to generate .t?z files using satellites.
# It's a fairly simple wrapper to astronaut, that generates a pkgtools package at the end.
# This may also serve as an example on how you can wrap astronaut to package in any format.
if [ "$(id -u)" != "0" ]; then
echo "This script has to be run as root" 1>&2
exit 1
fi
_topdir=$PWD
_astronaut="$(dirname "$0")/astronaut"
[ ! -f "$_astronaut" ] && _astronaut="astronaut"
_nuke_dir_install=true
. "$_astronaut"
# _dir_pkgtools should be set from a configuration file (e.g. ~/.astronaut.conf), and points to wherever you want your packages to be placed.
[ "$_dir_pkgtools" ] && mkdir -p "$_dir_pkgtools" || _dir_pkgtools="$_topdir"
cd "$dir_install"
makepkg -l y -c n "$_dir_pkgtools/$name-$version-$(uname -m)-astro.tgz"