Files
scratchpkg/extra/baseinstall
2017-12-08 21:22:20 +08:00

99 lines
1.1 KiB
Bash
Executable File

#!/bin/bash -e
INDEX_DIR="/var/lib/scratchpkg/index"
source "/usr/share/scratchpkg/color"
source "/usr/share/scratchpkg/message"
basepkg=(linux-api-headers
man-pages
glibc
tzdata
zlib
file
readline
m4
bc
binutils
gmp
mpfr
libmpc
gcc
bzip2
pkg-config
ncurses
attr
acl
libcap
sed
shadow
psmisc
iana-etc
bison
flex
grep
bash
libtool
gdbm
gperf
expat
inetutils
perl
perl-xml-parser
intltool
autoconf
automake
xz
kmod
gettext
procps-ng
e2fsprogs
coreutils
diffutils
gawk
findutils
groff
grub
less
gzip
iproute2
kbd
libpipeline
make
patch
sysklogd
sysvinit
eudev
util-linux
man-db
tar
texinfo
vim
filesystem
rc-init
base-meta)
for list in ${basepkg[@]}; do
if [ -d $INDEX_DIR/$list ]; then
msg "$list is installed"
else
echo
msg "Installing $list..."
case $list in
gcc | bash | perl | coreutils | filesystem )
scratch -p $list -i -id -ic
;;
* )
scratch -p $list -i -id
;;
esac
if [ ! -d $INDEX_DIR/$list ]; then
msgerr "Failed installing $list."
msgerr "Press ENTER to skip and continue, press CTRL + C to cancel."
read
fi
fi
done
exit 0