|
@ -13,7 +13,7 @@ _astronaut="$(dirname "$0")/astronaut" |
|
|
[ ! -f "$_astronaut" ] && _astronaut="astronaut" |
|
|
[ ! -f "$_astronaut" ] && _astronaut="astronaut" |
|
|
|
|
|
|
|
|
# Configuration |
|
|
# Configuration |
|
|
dir_wrapper_pacman="$PWD" # Where the packages should be stored |
|
|
wrapper_pacman_dir="$PWD" # Where the packages should be stored |
|
|
|
|
|
|
|
|
# Wrapper functions |
|
|
# Wrapper functions |
|
|
_astronaut_wrapper_pre() { |
|
|
_astronaut_wrapper_pre() { |
|
@ -33,8 +33,8 @@ size = $(du -sb --apparent-size "$dir_install" | awk '{print $1}') |
|
|
arch = $(uname -m) |
|
|
arch = $(uname -m) |
|
|
EOF |
|
|
EOF |
|
|
|
|
|
|
|
|
mkdir -p "$dir_wrapper_pacman" |
|
|
mkdir -p "$wrapper_pacman_dir" |
|
|
cd "$dir_wrapper_pacman" |
|
|
cd "$wrapper_pacman_dir" |
|
|
|
|
|
|
|
|
# Create the package |
|
|
# Create the package |
|
|
bsdtar --strip-components 1 -C "$dir_install" -czf .MTREE --format=mtree --options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' . |
|
|
bsdtar --strip-components 1 -C "$dir_install" -czf .MTREE --format=mtree --options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' . |
|
|