OSDN Git Service

[update] : ALL pkgs
authorhayao <shun819.mail@gmail.com>
Thu, 23 Jul 2020 09:45:41 +0000 (18:45 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 23 Jul 2020 09:45:41 +0000 (18:45 +0900)
scripts/alter-kernel
scripts/alter-stable
scripts/main.sh

index 483edc1..86b4a61 100644 (file)
@@ -2,13 +2,5 @@
 
 sign=true
 
-aur_pkgs=(
-    "linux-ck"
-    "linux-lqx"
-    "linux-rt"
-    "linux-rt-lts"
-    "linux-xanmod"
-    "linux-xanmod-lts"
-    "linux-zen-letsnote"
-)
+pkgs=("ALL")
 
index 2cc1a05..86b4a61 100644 (file)
@@ -2,20 +2,5 @@
 
 sign=true
 
-aur_pkgs=(
-    "alterlinux-calamares"
-    "alterlinux-fcitx-conf"
-    "alterlinux-keyring"
-    "alterlinux-mirrorlist"
-    "alterlinux-plasmalnf"
-    "alterlinux-wallpapers"
-    "alterlinux-xfce-conf"
-    "aptpac"
-    "dummy"
-    "grub-theme-vimix-alter"
-    "lightdm-webkit2-theme-alter"
-    "lsd-control"
-    "plymouth-theme-alter-logo"
-    "plymouth-theme-alter-pp"
-)
+pkgs=("ALL")
 
index ee00449..8a77714 100755 (executable)
@@ -247,10 +247,17 @@ build() {
     rm -rf "${work_dir}/git_work"
     git clone "${git_url}" "${work_dir}/git_work"
     local init_dir=$(pwd)
+    local build_list
 
     cd "${work_dir}/git_work/${repo_name}/${arch}"
     local pkg
-    for pkg in $(ls 2> /dev/null); do
+    if [[ "${pkgs[@]}" = "ALL" ]]; then
+        build_list=($(ls 2> /dev/null))
+    else
+        build_list=(${pkgs[@]})
+    fi
+
+    for pkg in ${build_list[@]}; do
         cd "${pkg}"
         makepkg -srCf --noconfirm --needed
         mv *.pkg.tar.* "${repo_dir}/${repo_name}/${arch}"
@@ -296,14 +303,6 @@ while :; do
             git_url="${2}"
             shift 2
             ;;
-        --aurlist)
-            aur_pkg_listfile="${2}"
-            shift 2
-            ;;
-        --gitlist)
-            git_pkg_listfile="${2}"
-            shift 2
-            ;;
         --repodir)
             repo_dir="${2}"
             shift 2