Browse Source

Misc changes

master
mid-kid 9 years ago
parent
commit
4affcd3ca6
  1. 2
      astronaut/astronaut
  2. 6
      astronaut/astronautpkg

2
astronaut/astronaut

@ -20,7 +20,7 @@ dir_prefix='/usr' # Prefix directory (for /bin, /lib, /include, /share and such
dir_bindir='bin'
dir_sbindir='sbin'
dir_libdir='lib'
dir_libexecdir='lib'
dir_libexecdir='libexec'
dir_mandir='share/man'
dir_docdir='share/doc'
dir_infodir='share/info'

6
astronaut/astronautpkg

@ -19,9 +19,11 @@ _nuke_dir_install=true
. "$_astronaut"
# Gzip man and info pages
[ -d "$dir_install/$dir_prefix/$dir_mandir" ] && gzip -9 -r "$dir_install/$dir_prefix/$dir_mandir"
[ -d "$dir_install/$dir_prefix/$dir_infodir" ] && gzip -9 -r "$dir_install/$dir_prefix/$dir_infodir"
# _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_wrapper_pkgtools" ] && mkdir -p "$dir_wrapper_pkgtools" || dir_wrapper_pkgtools="$_topdir"
cd "$dir_install"
[ -d usr/share/man ] && gzip -9 -r usr/share/man
[ -d usr/man ] && gzip -9 -r usr/man
PATH=$PATH:/sbin "$_fakeroot" makepkg -l y -c n "$dir_wrapper_pkgtools/$name-$version-$(uname -m)-astro.tgz"

Loading…
Cancel
Save