Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
d8195e2288 | |||
bfe9130cfb | |||
8873a71824 | |||
bb86a05f2f | |||
bd611c1af2 | |||
f4e8f703ea | |||
aa83bc79bb | |||
1bb9687ece
|
|||
48ced03735 | |||
0437e66091 | |||
9af6d02dea |
7
Makefile
7
Makefile
@@ -1,4 +1,4 @@
|
||||
VERSION=0.13
|
||||
VERSION=0.14
|
||||
|
||||
CHROOT_VERSION=0.9
|
||||
|
||||
@@ -85,9 +85,6 @@ LN_DEPLOYPKG = \
|
||||
PKG_LIBS = \
|
||||
$(wildcard lib/pkg/*)
|
||||
|
||||
PKG_LISTS = \
|
||||
$(wildcard data/pkglists/*.list)
|
||||
|
||||
PKG_UTIL = lib/util-pkg.sh
|
||||
|
||||
PKG_DATA = \
|
||||
@@ -183,8 +180,6 @@ install_pkg:
|
||||
install $(DIRMODE) $(DESTDIR)$(DATADIR)/$(TOOLS)/patches
|
||||
install $(FILEMODE) $(PATCHES) $(DESTDIR)$(DATADIR)/$(TOOLS)/patches
|
||||
|
||||
install $(DIRMODE) $(DESTDIR)$(DATADIR)/$(TOOLS)/pkglists
|
||||
install $(FILEMODE) $(PKG_LISTS) $(DESTDIR)$(DATADIR)/$(TOOLS)/pkglists
|
||||
install_cpio:
|
||||
+make CPIODIR=$(CPIODIR) DESTDIR=$(DESTDIR) -C initcpio install
|
||||
|
||||
|
@@ -16,7 +16,7 @@
|
||||
. @libdir@/artools/util-pkg.sh
|
||||
|
||||
compare(){
|
||||
local pkgpath="$1"
|
||||
local pkgpath="$1" group="$2"
|
||||
local pkg=${pkgpath##*/}
|
||||
local artixrepo=$(find_repo "$package" "${staging}" "${unstable}")
|
||||
local artixshow=${artixrepo%-*}
|
||||
@@ -50,9 +50,9 @@ compare(){
|
||||
case $artixrepo in
|
||||
*testing*|*staging*)
|
||||
if $repomatch;then
|
||||
msg_row "%-20s %-20s %-25s %-30s %-30s" "$archshow" "$artixshow" "$pkg" "$archver" "$artixver"
|
||||
msg_row "${table}" "$archshow" "$artixshow" "$pkg" "$archver" "$artixver" "$group"
|
||||
else
|
||||
msg_row_notify "%-20s %-20s %-25s %-30s %-30s" "$archshow" "$artixshow" "$pkg" "$archver" "$artixver"
|
||||
msg_row_notify "${table}" "$archshow" "$artixshow" "$pkg" "$archver" "$artixver" "$group"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
@@ -61,14 +61,14 @@ compare(){
|
||||
elif ${upgrades};then
|
||||
|
||||
if [ $result -eq -1 ];then
|
||||
msg_row_upgrade "%-20s %-20s %-25s %-30s %-30s" "$archshow" "$artixshow" "$pkg" "$archver" "$artixver"
|
||||
msg_row_upgrade "${table}" "$archshow" "$artixshow" "$pkg" "$archver" "$artixver" "$group"
|
||||
fi
|
||||
|
||||
elif ${downgrades};then
|
||||
|
||||
if [ $result -eq 1 ];then
|
||||
if [[ -n $archver ]] && [[ -n $archrepo ]];then
|
||||
msg_row_downgrade "%-20s %-20s %-25s %-30s %-30s" "$archshow" "$artixshow" "$pkg" "$archver" "$artixver"
|
||||
msg_row_downgrade "${table}" "$archshow" "$artixshow" "$pkg" "$archver" "$artixver" "$group"
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -110,7 +110,7 @@ check_db(){
|
||||
is_entry=true
|
||||
fi
|
||||
if ! $is_entry; then
|
||||
msg_row "%-20s %-35s %-20s %-10s" "$repo" "$name" "$artixver" "$is_entry"
|
||||
msg_row "${table2}" "$repo" "$name" "$artixver" "$is_entry"
|
||||
fi
|
||||
done
|
||||
unset artixver is_entry pkgbuild pkgver epoch pkgname pkgbase
|
||||
@@ -133,7 +133,7 @@ update_db_cache(){
|
||||
}
|
||||
|
||||
query_db() {
|
||||
msg_table_header "%-20s %-45s %s" "Repo" "Package" "Library"
|
||||
msg_table_header "${table3}" "Repo" "Package" "Library"
|
||||
for repo in "${searchrepos[@]}"; do
|
||||
local prefix=
|
||||
local db=${USERCACHEDIR}/${LINKSDBEXT}/${ARCH}/${repo}/
|
||||
@@ -143,7 +143,7 @@ query_db() {
|
||||
pkg=${pkg#${db}}
|
||||
pkg="${pkg%/*}"
|
||||
|
||||
msg_row "%-20s %-45s %s" "${repo}" "${pkg}" "${match}"
|
||||
msg_row "${table3}" "${repo}" "${pkg}" "${match}"
|
||||
done < <(grep -rZ "${library}" "${db}") | sort -u
|
||||
fi
|
||||
done
|
||||
@@ -154,12 +154,12 @@ show_version_table(){
|
||||
|
||||
if ${check};then
|
||||
${sync} && update_db_cache
|
||||
msg_table_header "%-20s %-35s %-20s %-10s" "Repo" "Package" "Version" "Database"
|
||||
msg_table_header "${table2}" "Repo" "Package" "Version" "Database"
|
||||
elif ${query};then
|
||||
${sync} && update_db_cache
|
||||
query_db
|
||||
else
|
||||
msg_table_header "%-20s %-20s %-25s %-30s %-30s" "Arch Repo" "Artix Repo" "Package" "Arch version" "Artix version"
|
||||
msg_table_header "${table}" "Arch Repo" "Artix Repo" "Package" "Arch version" "Artix version" "Group"
|
||||
fi
|
||||
|
||||
for tree in ${TREE_NAMES_ARTIX[@]};do
|
||||
@@ -170,7 +170,7 @@ show_version_table(){
|
||||
if ${check};then
|
||||
check_db "$package"
|
||||
else
|
||||
compare "$package"
|
||||
compare "$package" "$tree"
|
||||
fi
|
||||
done
|
||||
done
|
||||
@@ -198,6 +198,10 @@ artix_repos=(
|
||||
'gnome-wobble' 'kde-wobble'
|
||||
)
|
||||
|
||||
readonly table="%-20s %-20s %-25s %-25s %-25s %-20s"
|
||||
readonly table2="%-20s %-35s %-20s %-10s"
|
||||
readonly table3="%-20s %-45s %s"
|
||||
|
||||
searchrepos=(${artix_repos[@]})
|
||||
|
||||
usage() {
|
||||
|
@@ -25,11 +25,19 @@
|
||||
# packages-kernel
|
||||
# packages-openrc
|
||||
# packages-runit
|
||||
# packages-media
|
||||
# packages-xorg
|
||||
# packages-python
|
||||
# packages-perl
|
||||
# packages-qt5
|
||||
# packages-devel
|
||||
# packages-ruby
|
||||
# packages-gtk
|
||||
# packages-gnome
|
||||
# packages-cinnamon
|
||||
# packages-lxqt
|
||||
# packages-mate
|
||||
# packages-kde
|
||||
# )
|
||||
|
||||
# HOST_TREE_ARCH=git://git.archlinux.org/svntogit
|
||||
|
@@ -1,63 +0,0 @@
|
||||
accountsservice
|
||||
cairo
|
||||
colord
|
||||
cppunit
|
||||
dbus
|
||||
dbus-glib
|
||||
dbus-python
|
||||
desktop-file-utils
|
||||
fontconfig
|
||||
geoclue2
|
||||
glu
|
||||
gst-plugins-bad
|
||||
gst-plugins-base
|
||||
gst-plugins-good
|
||||
gst-plugins-ugly
|
||||
gstreamer
|
||||
harfbuzz
|
||||
hicolor-icon-theme
|
||||
libatasmart
|
||||
libbsd
|
||||
libdrm
|
||||
libevdev
|
||||
libinput
|
||||
libmbim
|
||||
libnice
|
||||
libqmi
|
||||
libvdpau
|
||||
libxcb
|
||||
libxft
|
||||
libxi
|
||||
media-player-info
|
||||
mesa
|
||||
modemmanager
|
||||
networkmanager
|
||||
orc
|
||||
p11-kit
|
||||
polkit
|
||||
poppler
|
||||
poppler-data
|
||||
pulseaudio
|
||||
pyxdg
|
||||
r
|
||||
sdl
|
||||
shared-mime-info
|
||||
sound-theme-freedesktop
|
||||
startup-notification
|
||||
systemdcompat
|
||||
telepathy-glib
|
||||
ttf-dejavu
|
||||
udisks2
|
||||
upower
|
||||
wayland
|
||||
wayland-protocols
|
||||
webrtc-audio-processing
|
||||
xcb-proto
|
||||
xcb-util
|
||||
xcb-util-cursor
|
||||
xcb-util-image
|
||||
xcb-util-keysyms
|
||||
xcb-util-renderutil
|
||||
xcb-util-wm
|
||||
xdg-user-dirs
|
||||
xdg-utils
|
@@ -1,63 +0,0 @@
|
||||
adwaita-icon-theme
|
||||
atk
|
||||
at-spi2-atk
|
||||
at-spi2-core
|
||||
babl
|
||||
cantarell-fonts
|
||||
cogl
|
||||
dconf
|
||||
flatpak
|
||||
gamin
|
||||
gcab
|
||||
gconf
|
||||
gcr
|
||||
gdk-pixbuf2
|
||||
gegl02
|
||||
git
|
||||
glade
|
||||
glib2
|
||||
glib-networking
|
||||
gnome-common
|
||||
gnome-keyring
|
||||
gobject-introspection
|
||||
gsettings-desktop-schemas
|
||||
gssdp
|
||||
gtk2
|
||||
gtk3
|
||||
gtk-doc
|
||||
gtksourceview3
|
||||
gupnp
|
||||
gupnp-igd
|
||||
gvfs
|
||||
json-glib
|
||||
libcloudproviders
|
||||
libcroco
|
||||
libgee
|
||||
libglade
|
||||
libgnome-keyring
|
||||
libgudev
|
||||
libnotify
|
||||
librsvg
|
||||
libsecret
|
||||
libsoup
|
||||
libxml2
|
||||
libxslt
|
||||
meld
|
||||
mobile-broadband-provider-info
|
||||
modemmanager
|
||||
networkmanager
|
||||
network-manager-applet
|
||||
orca
|
||||
ostree
|
||||
pango
|
||||
pyatspi
|
||||
pygobject
|
||||
pygobject2
|
||||
pygtk
|
||||
rest
|
||||
ttf-bitstream-vera
|
||||
vala
|
||||
vte
|
||||
vte3
|
||||
yelp-tools
|
||||
yelp-xsl
|
@@ -1,4 +0,0 @@
|
||||
phonon-gstreamer
|
||||
polkit-qt
|
||||
extra-cmake-modules
|
||||
phonon
|
@@ -1,17 +0,0 @@
|
||||
linux
|
||||
nvidia
|
||||
nvidia-utils
|
||||
acpi_call
|
||||
bbswitch
|
||||
broadcom-wl
|
||||
tp_smapi
|
||||
r8168
|
||||
virtualbox-modules-artix
|
||||
linux-lts
|
||||
nvidia-lts
|
||||
acpi_call-lts
|
||||
bbswitch-lts
|
||||
broadcom-wl-lts
|
||||
tp_smapi-lts
|
||||
r8168-lts
|
||||
linux-firmware
|
@@ -1,31 +0,0 @@
|
||||
lxqt-about
|
||||
lxqt-admin
|
||||
lxqt-config
|
||||
lxqt-globalkeys
|
||||
lxqt-notificationd
|
||||
lxqt-openssh-askpass
|
||||
lxqt-panel
|
||||
lxqt-policykit
|
||||
lxqt-powermanagement
|
||||
lxqt-qtplugin
|
||||
lxqt-runner
|
||||
lxqt-session
|
||||
lxqt-sudo
|
||||
lxqt-themes
|
||||
lxqt-build-tools
|
||||
|
||||
compton-conf
|
||||
lximage-qt
|
||||
obconf-qt
|
||||
openbox
|
||||
pcmanfm-qt
|
||||
qterminal
|
||||
liblxqt
|
||||
libqtxdg
|
||||
lxmenu-data
|
||||
libfm-qt
|
||||
libfm
|
||||
qtermwidget
|
||||
libsysstat
|
||||
libstatgrab
|
||||
qps
|
@@ -1,37 +0,0 @@
|
||||
libdmx
|
||||
libfontenc
|
||||
libice
|
||||
libpciaccess
|
||||
libsm
|
||||
libx11
|
||||
libxau
|
||||
libxaw
|
||||
libxcomposite
|
||||
libxcursor
|
||||
libxdamage
|
||||
libxdmcp
|
||||
libxext
|
||||
libxfixes
|
||||
libxfont2
|
||||
libxi|libxft
|
||||
libxinerama
|
||||
libxkbfile
|
||||
libxkbui
|
||||
libxmu
|
||||
libxpm
|
||||
libxrandr
|
||||
libxrender
|
||||
libxres
|
||||
libxshmfence
|
||||
libxss
|
||||
libxt
|
||||
libxtst
|
||||
libxv
|
||||
libxvmc
|
||||
libxxf86vm
|
||||
pixman
|
||||
xbitmaps
|
||||
xkeyboard-config
|
||||
xorgproto
|
||||
xterm
|
||||
xtrans
|
@@ -76,19 +76,23 @@ init_artools_pkg(){
|
||||
|
||||
[[ -z ${TREE_NAMES_ARTIX[@]} ]] && \
|
||||
TREE_NAMES_ARTIX=(
|
||||
packages
|
||||
community
|
||||
packages-kernel
|
||||
packages-openrc
|
||||
packages-runit
|
||||
packages-xorg
|
||||
packages-python
|
||||
packages-perl
|
||||
packages-qt5
|
||||
packages-ruby
|
||||
# packages-desktop
|
||||
# packages-kde
|
||||
# packages-gnome
|
||||
packages
|
||||
community
|
||||
packages-kernel
|
||||
packages-openrc
|
||||
packages-runit
|
||||
packages-xorg
|
||||
packages-python
|
||||
packages-perl
|
||||
packages-qt5
|
||||
packages-devel
|
||||
packages-ruby
|
||||
packages-gtk
|
||||
packages-gnome
|
||||
packages-cinnamon
|
||||
packages-lxqt
|
||||
packages-mate
|
||||
packages-kde
|
||||
)
|
||||
|
||||
HOST_TREE_ARTIX=${HOST_TREE_ARTIX:-"gitea@${GIT_DOMAIN}:artixlinux"}
|
||||
|
@@ -23,14 +23,12 @@ get_remote_head(){
|
||||
get_pkg_org(){
|
||||
local pkg="$1" org= sub=
|
||||
case ${pkg} in
|
||||
ruby-*) org=${pkg:0:6}; sub="${org:5}"; echo "packagesRuby" ;;
|
||||
perl-*) org=${pkg:0:6}; sub="${org:5}"; echo "packagesPerl" ;;
|
||||
python-*) org=${pkg:0:8}; sub="${org:7}"; echo "packagesPython" ;;
|
||||
python2-*) org=${pkg:0:9}; sub="${org:8}"; echo "packagesPython" ;;
|
||||
lib32*) org=${pkg:0:7}; sub="${org:6}"; echo "packagesL" ;; #"packages${sub^^}" ;;
|
||||
# lib*) org=${pkg:0:4}; sub="${org:3}"; echo "packagesLib${sub^^}" ;;
|
||||
*) org=${pkg:0:1}; echo "packages${org^^}" ;;
|
||||
ruby-*) org="packagesRuby" ;;
|
||||
perl-*) org="packagesPerl" ;;
|
||||
python-*|python2-*) org="packagesPython" ;;
|
||||
*) sub=${pkg:0:1}; org="packages${sub^^}" ;;
|
||||
esac
|
||||
echo $org
|
||||
}
|
||||
|
||||
subrepo_push(){
|
||||
|
@@ -127,7 +127,8 @@ is_valid_repo(){
|
||||
}
|
||||
|
||||
get_cases(){
|
||||
local pkglist="${DATADIR}/pkglists/$1.list"
|
||||
local pkglist="${SYSCONFDIR}/pkglist.d/$1.list"
|
||||
|
||||
local _space="s| ||g" _clean=':a;N;$!ba;s/\n/ /g' _com_rm="s|#.*||g"
|
||||
|
||||
local pkgs=($(sed "$_com_rm" "$pkglist" | sed "$_space" | sed "$_clean"))
|
||||
@@ -143,22 +144,24 @@ get_artix_tree(){
|
||||
local pkg="$1" artix_tree="${2:-$3}" tree
|
||||
eval "case $pkg in
|
||||
$(get_cases kernel)) tree=packages-kernel ;;
|
||||
python-*|python2-*) tree=packages-python ;;
|
||||
perl-*) tree=packages-perl ;;
|
||||
ruby-*) tree=packages-ruby ;;
|
||||
xorg*|xf86*|$(get_cases xorg)) tree=packages-xorg ;;
|
||||
*-openrc) tree=packages-openrc ;;
|
||||
*-runit) tree=packages-runit ;;
|
||||
qt5-*) tree=packages-qt5 ;;
|
||||
lxqt*|$(get_cases lxqt)) tree=packages-lxqt ;;
|
||||
$(get_cases python)) tree=packages-python ;;
|
||||
$(get_cases perl)) tree=packages-perl ;;
|
||||
$(get_cases ruby)) tree=packages-ruby ;;
|
||||
$(get_cases openrc)) tree=packages-openrc ;;
|
||||
$(get_cases runit)) tree=packages-runit ;;
|
||||
$(get_cases media)) tree=packages-media ;;
|
||||
$(get_cases xorg)) tree=packages-xorg ;;
|
||||
$(get_cases qt5)) tree=packages-qt5 ;;
|
||||
$(get_cases gtk)) tree=packages-gtk ;;
|
||||
$(get_cases devel)) tree=packages-devel ;;
|
||||
$(get_cases lxqt)) tree=packages-lxqt ;;
|
||||
$(get_cases cinnamon)) tree=packages-cinnamon ;;
|
||||
$(get_cases kde)) tree=packages-kde ;;
|
||||
$(get_cases gnome)) tree=packages-gnome ;;
|
||||
$(get_cases mate)) tree=packages-mate ;;
|
||||
*) tree=$artix_tree
|
||||
esac"
|
||||
echo $tree
|
||||
|
||||
# $(get_cases freedesktop)) tree=packages-desktop ;;
|
||||
# $(get_cases kde)) tree=packages-kde ;;
|
||||
# $(get_cases gnome)) tree=packages-gnome ;;
|
||||
|
||||
}
|
||||
|
||||
get_import_path(){
|
||||
|
Reference in New Issue
Block a user