forked from artix/artools
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b7fd0a4e41 |
@@ -85,14 +85,12 @@ shift 1
|
|||||||
|
|
||||||
[[ -z $working_dir ]] && die 'Please specify a working directory.'
|
[[ -z $working_dir ]] && die 'Please specify a working directory.'
|
||||||
|
|
||||||
pacconf_cmd=$(command -v pacman-conf || command -v pacconf)
|
|
||||||
|
|
||||||
if (( ${#cache_dirs[@]} == 0 )); then
|
if (( ${#cache_dirs[@]} == 0 )); then
|
||||||
mapfile -t cache_dirs < <($pacconf_cmd --config "${pac_conf:-$working_dir/etc/pacman.conf}" CacheDir)
|
mapfile -t cache_dirs < <(pacman-conf --config "${pac_conf:-$working_dir/etc/pacman.conf}" CacheDir)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# shellcheck disable=2016
|
# shellcheck disable=2016
|
||||||
host_mirrors=($("$pacconf_cmd" --repo world Server 2> /dev/null | sed -r 's#(.*/)world/os/.*#\1$repo/os/$arch#'))
|
host_mirrors=($(pacman-conf --repo world Server 2> /dev/null | sed -r 's#(.*/)world/os/.*#\1$repo/os/$arch#'))
|
||||||
|
|
||||||
for host_mirror in "${host_mirrors[@]}"; do
|
for host_mirror in "${host_mirrors[@]}"; do
|
||||||
if [[ $host_mirror == *file://* ]]; then
|
if [[ $host_mirror == *file://* ]]; then
|
||||||
@@ -104,7 +102,7 @@ done
|
|||||||
|
|
||||||
while read -r line; do
|
while read -r line; do
|
||||||
# shellcheck disable=2016
|
# shellcheck disable=2016
|
||||||
mapfile -t lines < <($pacconf_cmd --config "${pac_conf:-$working_dir/etc/pacman.conf}" \
|
mapfile -t lines < <(pacman-conf --config "${pac_conf:-$working_dir/etc/pacman.conf}" \
|
||||||
--repo "$line" Server | sed -r 's#(.*/)[^/]+/os/.+#\1#')
|
--repo "$line" Server | sed -r 's#(.*/)[^/]+/os/.+#\1#')
|
||||||
for line in "${lines[@]}"; do
|
for line in "${lines[@]}"; do
|
||||||
if [[ $line = file://* ]]; then
|
if [[ $line = file://* ]]; then
|
||||||
@@ -112,7 +110,7 @@ while read -r line; do
|
|||||||
in_array "$line" "${cache_dirs[@]}" || cache_dirs+=("$line")
|
in_array "$line" "${cache_dirs[@]}" || cache_dirs+=("$line")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
done < <("$pacconf_cmd" --config "${pac_conf:-$working_dir/etc/pacman.conf}" --repo-list)
|
done < <(pacman-conf --config "${pac_conf:-$working_dir/etc/pacman.conf}" --repo-list)
|
||||||
|
|
||||||
copy_hostconf () {
|
copy_hostconf () {
|
||||||
unshare --fork --pid gpg --homedir "$working_dir"/etc/pacman.d/gnupg/ --no-permission-warning --quiet --batch --import --import-options import-local-sigs "$(pacman-conf GpgDir)"/pubring.gpg >/dev/null 2>&1
|
unshare --fork --pid gpg --homedir "$working_dir"/etc/pacman.d/gnupg/ --no-permission-warning --quiet --batch --import --import-options import-local-sigs "$(pacman-conf GpgDir)"/pubring.gpg >/dev/null 2>&1
|
||||||
|
|||||||
@@ -64,10 +64,8 @@ shift 1
|
|||||||
|
|
||||||
[[ -z $working_dir ]] && die 'Please specify a working directory.'
|
[[ -z $working_dir ]] && die 'Please specify a working directory.'
|
||||||
|
|
||||||
pacconf_cmd=$(command -v pacman-conf || command -v pacconf)
|
|
||||||
|
|
||||||
if (( ${#cache_dirs[@]} == 0 )); then
|
if (( ${#cache_dirs[@]} == 0 )); then
|
||||||
mapfile -t cache_dirs < <($pacconf_cmd CacheDir)
|
mapfile -t cache_dirs < <(pacman-conf CacheDir)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
umask 0022
|
umask 0022
|
||||||
|
|||||||
@@ -52,6 +52,9 @@ compare_m(){
|
|||||||
|
|
||||||
compare_u(){
|
compare_u(){
|
||||||
if [ "$result" -eq -1 ];then
|
if [ "$result" -eq -1 ];then
|
||||||
|
# local arel=${archver##*-} brel=${artixver##*-}
|
||||||
|
# local reldiff
|
||||||
|
reldiff=$(( $arel-${brel%.*} ))
|
||||||
msg_row_red "${table}" "${a}" "${b}" "$pkg" "$archver" "$artixver" "${group#*-}"
|
msg_row_red "${table}" "${a}" "${b}" "$pkg" "$archver" "$artixver" "${group#*-}"
|
||||||
write_list "${a}:$pkg" pkg_upgrades
|
write_list "${a}:$pkg" pkg_upgrades
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ download_sources() {
|
|||||||
chown "$makepkg_user:" "$WORKDIR"
|
chown "$makepkg_user:" "$WORKDIR"
|
||||||
|
|
||||||
# Ensure sources are downloaded
|
# Ensure sources are downloaded
|
||||||
sudo -u "$makepkg_user" --preserve-env=GNUPGHOME \
|
sudo -u "$makepkg_user" --preserve-env=GNUPGHOME,SSH_AUTH_SOCK \
|
||||||
env SRCDEST="$SRCDEST" BUILDDIR="$WORKDIR" \
|
env SRCDEST="$SRCDEST" BUILDDIR="$WORKDIR" \
|
||||||
makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o "${verifysource_args[@]}" ||
|
makepkg --config="$copydir/etc/makepkg.conf" --verifysource -o "${verifysource_args[@]}" ||
|
||||||
die "Could not download sources."
|
die "Could not download sources."
|
||||||
|
|||||||
@@ -15,15 +15,20 @@
|
|||||||
# packages-runit
|
# packages-runit
|
||||||
# packages-s6
|
# packages-s6
|
||||||
# packages-suite66
|
# packages-suite66
|
||||||
|
# packages-dinit
|
||||||
# packages-perl
|
# packages-perl
|
||||||
# packages-java
|
# packages-java
|
||||||
# packages-ruby
|
# packages-ruby
|
||||||
# packages-kf5
|
# packages-gtk
|
||||||
|
# packages-qt5
|
||||||
|
# packages-qt6
|
||||||
|
# packages-xorg
|
||||||
# packages-plasma
|
# packages-plasma
|
||||||
# packages-kde
|
# packages-kde
|
||||||
# packages-gnome
|
# packages-gnome
|
||||||
# packages-cinnamon
|
# packages-cinnamon
|
||||||
# packages-lxqt
|
# packages-lxqt
|
||||||
|
# packages-lxde
|
||||||
# packages-mate
|
# packages-mate
|
||||||
# packages-xfce
|
# packages-xfce
|
||||||
# packages-wm
|
# packages-wm
|
||||||
@@ -33,6 +38,8 @@
|
|||||||
# packages-misc
|
# packages-misc
|
||||||
# python-world
|
# python-world
|
||||||
# python-galaxy
|
# python-galaxy
|
||||||
|
# python-galaxy-groups
|
||||||
|
# python-misc
|
||||||
# packages-python
|
# packages-python
|
||||||
# packages-lib32
|
# packages-lib32
|
||||||
# )
|
# )
|
||||||
|
|||||||
@@ -11,10 +11,10 @@
|
|||||||
#
|
#
|
||||||
#-- The download utilities that makepkg should use to acquire sources
|
#-- The download utilities that makepkg should use to acquire sources
|
||||||
# Format: 'protocol::agent'
|
# Format: 'protocol::agent'
|
||||||
DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
|
DLAGENTS=('file::/usr/bin/curl -qgC - -o %o %u'
|
||||||
'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
'ftp::/usr/bin/curl -qgfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
||||||
'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
'http::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
'https::/usr/bin/curl -qgb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
||||||
'rsync::/usr/bin/rsync --no-motd -z %u %o'
|
'rsync::/usr/bin/rsync --no-motd -z %u %o'
|
||||||
'scp::/usr/bin/scp -C %u %o')
|
'scp::/usr/bin/scp -C %u %o')
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ BUILDENV=(!distcc color !ccache check !sign)
|
|||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
||||||
#-- lto: Add compile flags for building with link time optimization
|
#-- lto: Add compile flags for building with link time optimization
|
||||||
#
|
#
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto)
|
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
#-- File integrity checks to use. Valid: md5, sha1, sha224, sha256, sha384, sha512, b2
|
||||||
INTEGRITY_CHECK=(sha256)
|
INTEGRITY_CHECK=(sha256)
|
||||||
|
|||||||
@@ -23,19 +23,19 @@ load_pkg_config(){
|
|||||||
|
|
||||||
ARTIX_TREE=(
|
ARTIX_TREE=(
|
||||||
packages community
|
packages community
|
||||||
packages-{gfx,gtk,media,net,qt5,xorg}
|
packages-{gfx,media,net}
|
||||||
)
|
)
|
||||||
|
|
||||||
local dev_tree=(
|
local dev_tree=(
|
||||||
packages-{llvm,python,perl,java,ruby}
|
packages-{llvm,python,perl,java,ruby,misc}
|
||||||
python-{world,galaxy}
|
python-{world,galaxy,galaxy-groups,misc}
|
||||||
)
|
)
|
||||||
|
|
||||||
local init_tree=(packages-{openrc,runit,s6,suite66,dinit})
|
local init_tree=(packages-{openrc,runit,s6,suite66,dinit})
|
||||||
|
|
||||||
local desktop_tree=(
|
local desktop_tree=(
|
||||||
packages-{kf5,plasma,kde,qt6}
|
packages-{kf5,plasma,kde,qt5,qt6,xorg,gtk}
|
||||||
packages-{lxqt,gnome,cinnamon,mate,xfce,wm}
|
packages-{lxqt,gnome,cinnamon,mate,xfce,wm,lxde}
|
||||||
)
|
)
|
||||||
|
|
||||||
[[ -z ${TREE_NAMES_ARTIX[*]} ]] && \
|
[[ -z ${TREE_NAMES_ARTIX[*]} ]] && \
|
||||||
|
|||||||
Reference in New Issue
Block a user