OSDN Git Service

Add build env packages master
authorSungsit Sawaiwan <sungsit@users.noreply.github.com>
Sat, 18 Jun 2016 16:16:04 +0000 (23:16 +0700)
committerSungsit Sawaiwan <sungsit@users.noreply.github.com>
Sat, 18 Jun 2016 16:16:04 +0000 (23:16 +0700)
build.sh
packages-build-env.txt [new file with mode: 0644]

index 638e056..c0463a8 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -45,6 +45,12 @@ run_once() {
     fi
 }
 
+# Install required packages on running host
+make_build_env() {
+  pacman -Syyu 
+  pacman --noconfirm --needed -S $(grep -h -v ^# ${script_path}/packages.txt)
+}
+
 # Setup custom pacman.conf with current cache directories.
 make_pacman_conf() {
     local _cache_dirs
@@ -264,6 +270,7 @@ done
 
 mkdir -p ${work_dir}
 
+run_once make_build_env
 run_once make_pacman_conf
 run_once make_fonts
 run_once make_basefs
diff --git a/packages-build-env.txt b/packages-build-env.txt
new file mode 100644 (file)
index 0000000..3aac132
--- /dev/null
@@ -0,0 +1,21 @@
+# Minimal boounux build env packages
+
+arch-install-scripts
+archiso
+base-devel
+bash-completion
+btrfs-progs
+dhclient
+dosfstools
+git
+grub
+mtools
+ntp
+openssh
+rsync
+sudo
+unzip
+wget
+yaourt
+zip
+