forked from artix/artools
Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
922afb4e69 | |||
d22017e1a1 | |||
1ea7d2ca8b | |||
3cd8632c61 | |||
b425eac181 | |||
4b2d516258 | |||
defd0c7ad6 | |||
cf0cd1772e | |||
761ccf7644 | |||
5684aab444 | |||
df8d8fb4a0 | |||
be5fa4af09 |
@@ -28,6 +28,7 @@ artools
|
|||||||
- pkg:
|
- pkg:
|
||||||
* namcap
|
* namcap
|
||||||
* git-subrepo
|
* git-subrepo
|
||||||
|
* jshon
|
||||||
|
|
||||||
- iso:
|
- iso:
|
||||||
* dosfstools
|
* dosfstools
|
||||||
|
@@ -20,10 +20,10 @@ pull_tree_arch(){
|
|||||||
for tree in ${TREE_NAMES_ARCH[@]};do
|
for tree in ${TREE_NAMES_ARCH[@]};do
|
||||||
if [[ -d ${tree} ]];then
|
if [[ -d ${tree} ]];then
|
||||||
cd ${tree}
|
cd ${tree}
|
||||||
pull_tree "${tree}"
|
pull_tree "${tree}" "$(get_local_head)" "Arch"
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
clone_tree "${HOST_TREE_ARCH}" "${tree}"
|
clone_tree "${HOST_TREE_ARCH}" "${tree}" "Arch"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@@ -34,7 +34,7 @@ pull_tree_artix(){
|
|||||||
if [[ -d ${tree} ]];then
|
if [[ -d ${tree} ]];then
|
||||||
config_tree "${tree}"
|
config_tree "${tree}"
|
||||||
cd ${tree}
|
cd ${tree}
|
||||||
pull_tree "${tree}"
|
pull_tree "${tree}" "$(get_local_head)"
|
||||||
cd ..
|
cd ..
|
||||||
else
|
else
|
||||||
clone_tree "${HOST_TREE_ARTIX}" "${tree}"
|
clone_tree "${HOST_TREE_ARTIX}" "${tree}"
|
||||||
@@ -59,7 +59,7 @@ show_deps(){
|
|||||||
|
|
||||||
local archver=$(get_full_version $pkg)
|
local archver=$(get_full_version $pkg)
|
||||||
|
|
||||||
msg "repo: %s" "$repo"
|
msg2 "repo: %s" "$repo"
|
||||||
[[ -n ${pkgbase} ]] && msg2 "pkgbase: %s" "${pkgbase}"
|
[[ -n ${pkgbase} ]] && msg2 "pkgbase: %s" "${pkgbase}"
|
||||||
msg2 "pkgname: %s" "${pkgname[*]}"
|
msg2 "pkgname: %s" "${pkgname[*]}"
|
||||||
[[ -n $pkgdesc ]] && msg2 "pkgdesc: %s" "${pkgdesc}"
|
[[ -n $pkgdesc ]] && msg2 "pkgdesc: %s" "${pkgdesc}"
|
||||||
@@ -87,6 +87,7 @@ from_arch(){
|
|||||||
|
|
||||||
dest=${TREE_DIR_ARTIX}/$tree_dir/$pkg/trunk
|
dest=${TREE_DIR_ARTIX}/$tree_dir/$pkg/trunk
|
||||||
|
|
||||||
|
msg "tree: %s" "$tree_dir"
|
||||||
show_deps "$src" "$repo"
|
show_deps "$src" "$repo"
|
||||||
|
|
||||||
if [[ -d $dest ]];then
|
if [[ -d $dest ]];then
|
||||||
@@ -122,7 +123,7 @@ view_build(){
|
|||||||
|
|
||||||
sync_repos(){
|
sync_repos(){
|
||||||
${sync_arch} && pull_tree_arch
|
${sync_arch} && pull_tree_arch
|
||||||
pull_tree_artix
|
${sync_artix} && pull_tree_artix
|
||||||
}
|
}
|
||||||
|
|
||||||
load_user_info
|
load_user_info
|
||||||
@@ -133,6 +134,7 @@ load_vars /etc/makepkg.conf
|
|||||||
|
|
||||||
sync=false
|
sync=false
|
||||||
sync_arch=true
|
sync_arch=true
|
||||||
|
sync_artix=true
|
||||||
import=false
|
import=false
|
||||||
view=false
|
view=false
|
||||||
createnew=false
|
createnew=false
|
||||||
@@ -140,20 +142,21 @@ conf=false
|
|||||||
|
|
||||||
PACKAGE=''
|
PACKAGE=''
|
||||||
|
|
||||||
TEAM=${TREE_NAMES[0]}
|
TEAM=${TREE_NAMES_ARTIX[0]}
|
||||||
SUBORG=''
|
GROUP=${TREE_NAMES_ARTIX[0]}
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: ${0##*/} [options]"
|
echo "Usage: ${0##*/} [options]"
|
||||||
echo ' -p <pkg> Package name'
|
echo ' -p <pkg> Package name'
|
||||||
echo ' -t <team> Team name (only with -n)'
|
echo ' -t <team> Team name (only with -n)'
|
||||||
echo " [default: ${TEAM}]"
|
echo " [default: ${TEAM}]"
|
||||||
echo ' -o <org> Org of subrepo (only with -c)'
|
echo ' -g <group> Group name, the superrepo (only with -n)'
|
||||||
|
echo " [default: ${GROUP}]"
|
||||||
echo " -s Clone or pull repos"
|
echo " -s Clone or pull repos"
|
||||||
echo " -z Don't clone or pull arch repos"
|
echo " -z Don't clone or pull arch repos"
|
||||||
|
echo " -y Don't clone or pull artix repos"
|
||||||
echo ' -i Import a package from arch repos'
|
echo ' -i Import a package from arch repos'
|
||||||
echo ' -n Make new remote subrepo and clone it'
|
echo ' -n Make new remote subrepo and clone it'
|
||||||
echo ' -c Configure subrepo url'
|
|
||||||
echo ' -v View package depends'
|
echo ' -v View package depends'
|
||||||
echo ' -h This help'
|
echo ' -h This help'
|
||||||
echo ''
|
echo ''
|
||||||
@@ -163,19 +166,19 @@ usage() {
|
|||||||
|
|
||||||
orig_argv=("$0" "$@")
|
orig_argv=("$0" "$@")
|
||||||
|
|
||||||
opts='p:t:o:csinzvh'
|
opts='p:t:g:sinzyvh'
|
||||||
|
|
||||||
while getopts "${opts}" arg; do
|
while getopts "${opts}" arg; do
|
||||||
case "${arg}" in
|
case "${arg}" in
|
||||||
p) PACKAGE="$OPTARG" ;;
|
p) PACKAGE="$OPTARG" ;;
|
||||||
t) TEAM="$OPTARG" ;;
|
t) TEAM="$OPTARG" ;;
|
||||||
o) SUBORG="$OPTARG" ;;
|
g) GROUP="$OPTARG" ;;
|
||||||
s) sync=true ;;
|
s) sync=true ;;
|
||||||
z) sync_arch=false ;;
|
z) sync_arch=false ;;
|
||||||
|
y) sync_artix=false ;;
|
||||||
i) import=true ;;
|
i) import=true ;;
|
||||||
n) createnew=true ;;
|
n) createnew=true ;;
|
||||||
v) view=true ;;
|
v) view=true ;;
|
||||||
c) conf=true ;;
|
|
||||||
h|?) usage 0 ;;
|
h|?) usage 0 ;;
|
||||||
*) echo "invalid argument '${arg}'"; usage 1 ;;
|
*) echo "invalid argument '${arg}'"; usage 1 ;;
|
||||||
esac
|
esac
|
||||||
@@ -192,6 +195,4 @@ ${view} && view_build "${PACKAGE}"
|
|||||||
|
|
||||||
${import} && from_arch "${PACKAGE}"
|
${import} && from_arch "${PACKAGE}"
|
||||||
|
|
||||||
${createnew} && subrepo_new "${PACKAGE}" "${TEAM}"
|
${createnew} && subrepo_new "${PACKAGE}" "${GROUP}" "${TEAM}"
|
||||||
|
|
||||||
${conf} && subrepo_config "${PACKAGE}" "${SUBORG}"
|
|
||||||
|
@@ -21,7 +21,13 @@ update_repo(){
|
|||||||
|
|
||||||
. PKGBUILD
|
. PKGBUILD
|
||||||
|
|
||||||
for name in ${pkgname[@]};do
|
local pkgsearch=(${pkgname[@]})
|
||||||
|
if check_option "debug" "y"; then
|
||||||
|
pkgbase=${pkgbase:-${pkgname[@]}}
|
||||||
|
pkgsearch+=("${pkgbase}-debug")
|
||||||
|
fi
|
||||||
|
|
||||||
|
for name in ${pkgsearch[@]}; do
|
||||||
pkgarch=$(get_pkg_arch "$name")
|
pkgarch=$(get_pkg_arch "$name")
|
||||||
ver=$(get_full_version "$name")
|
ver=$(get_full_version "$name")
|
||||||
if pkgfile=$(find_cached_package "$name" "$ver" "$pkgarch");then
|
if pkgfile=$(find_cached_package "$name" "$ver" "$pkgarch");then
|
||||||
|
@@ -79,14 +79,14 @@ write_details() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
write_pkg_yaml(){
|
write_pkg_yaml(){
|
||||||
local pkgfile=$(print_all_package_names)
|
local pkgfile=$(makepkg --packagelist)
|
||||||
|
|
||||||
Yaml=$(write_yaml_header)
|
Yaml=$(write_yaml_header)
|
||||||
|
|
||||||
Yaml+=$(write_empty_line)
|
Yaml+=$(write_empty_line)
|
||||||
|
|
||||||
Yaml+=$(write_yaml_map 0 "pkgbase")
|
Yaml+=$(write_yaml_map 0 "pkgbase")
|
||||||
Yaml+=$(write_yaml_map 2 "pkgname" "${pkgbase:-$pkgname}")
|
Yaml+=$(write_yaml_map 2 "pkgname" "${pkgbase:-${pkgname[0]}}")
|
||||||
${details} && write_details ''
|
${details} && write_details ''
|
||||||
|
|
||||||
Yaml+=$(write_empty_line)
|
Yaml+=$(write_empty_line)
|
||||||
|
@@ -17,8 +17,27 @@
|
|||||||
|
|
||||||
# HOST_TREE_ARTIX='gitea@gitea.artixlinux.org:artix'
|
# HOST_TREE_ARTIX='gitea@gitea.artixlinux.org:artix'
|
||||||
|
|
||||||
|
# TREE_DIR_ARTIX=${WORKSPACE_DIR}/artixlinux
|
||||||
|
|
||||||
|
# TREE_NAMES_ARTIX=(
|
||||||
|
# packages
|
||||||
|
# community
|
||||||
|
# packages-kernel
|
||||||
|
# packages-openrc
|
||||||
|
# packages-runit
|
||||||
|
# packages-xorg
|
||||||
|
# packages-python
|
||||||
|
# packages-perl
|
||||||
|
# packages-qt5
|
||||||
|
# packages-ruby
|
||||||
|
# )
|
||||||
|
|
||||||
# HOST_TREE_ARCH=git://git.archlinux.org/svntogit
|
# HOST_TREE_ARCH=git://git.archlinux.org/svntogit
|
||||||
|
|
||||||
|
# TREE_DIR_ARCH=${WORKSPACE_DIR}/archlinux
|
||||||
|
|
||||||
|
# TREE_NAMES_ARCH=(packages community)
|
||||||
|
|
||||||
# default repos root
|
# default repos root
|
||||||
# REPOS_ROOT=${WORKSPACE_DIR}/repos
|
# REPOS_ROOT=${WORKSPACE_DIR}/repos
|
||||||
|
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
linux
|
linux
|
||||||
nvidia
|
nvidia
|
||||||
|
nvidia-utils
|
||||||
acpi_call
|
acpi_call
|
||||||
bbswitch
|
bbswitch
|
||||||
broadcom-wl
|
broadcom-wl
|
||||||
|
31
data/pkglists/lxqt.list
Normal file
31
data/pkglists/lxqt.list
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
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
|
@@ -117,10 +117,11 @@ msg_row_notify(){
|
|||||||
|
|
||||||
msg_row(){
|
msg_row(){
|
||||||
local mesg=$1; shift
|
local mesg=$1; shift
|
||||||
printf "${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
|
# printf "${BOLD} ${mesg}${ALL_OFF}\n" "$@" >&2
|
||||||
|
printf "${WHITE} ${mesg}${ALL_OFF}\n" "$@" >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
msg_row_upgrade(){
|
msg_row_upgrade(){
|
||||||
local mesg=$1; shift
|
local mesg=$1; shift
|
||||||
printf "${RED}${RED} ${mesg} ${ALL_OFF}\n" "$@" >&2
|
printf "${RED} ${mesg} ${ALL_OFF}\n" "$@" >&2
|
||||||
}
|
}
|
||||||
|
@@ -23,6 +23,8 @@ create_repo(){
|
|||||||
-H "accept: application/json" \
|
-H "accept: application/json" \
|
||||||
-H "content-type: application/json" \
|
-H "content-type: application/json" \
|
||||||
-d "$json"
|
-d "$json"
|
||||||
|
|
||||||
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
delete_repo(){
|
delete_repo(){
|
||||||
|
@@ -39,14 +39,6 @@ subrepo_push(){
|
|||||||
git subrepo push "$pkg"
|
git subrepo push "$pkg"
|
||||||
}
|
}
|
||||||
|
|
||||||
subrepo_config(){
|
|
||||||
local pkg="$1" org="$2"
|
|
||||||
local gitname=$(get_compliant_name "$pkg")
|
|
||||||
local url=gitea@"${GIT_DOMAIN}":"$org"/"$gitname".git
|
|
||||||
msg2 "Update .gitrepo (%s) [%s]" "$pkg" "$url"
|
|
||||||
git subrepo config "$pkg" remote "$url"
|
|
||||||
}
|
|
||||||
|
|
||||||
subrepo_clean(){
|
subrepo_clean(){
|
||||||
local pkg="$1"
|
local pkg="$1"
|
||||||
msg2 "Clean (%s)" "$pkg"
|
msg2 "Clean (%s)" "$pkg"
|
||||||
@@ -67,9 +59,9 @@ subrepo_clone(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
clone_tree(){
|
clone_tree(){
|
||||||
local timer=$(get_timer) url="$1" tree="$2"
|
local timer=$(get_timer) url="$1" tree="$2" os="${3:-$(get_osname)}"
|
||||||
|
|
||||||
msg "Cloning (%s) ..." "$tree"
|
msg "Cloning %s (%s) ..." "$tree" "$os"
|
||||||
|
|
||||||
git clone $url/$tree.git
|
git clone $url/$tree.git
|
||||||
show_elapsed_time "${FUNCNAME}" "${timer}"
|
show_elapsed_time "${FUNCNAME}" "${timer}"
|
||||||
@@ -87,11 +79,10 @@ has_changes(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
pull_tree(){
|
pull_tree(){
|
||||||
local tree="$1"
|
local tree="$1" local_head="$2" os="${3:-$(get_osname)}"
|
||||||
local local_head=${2:-$(get_local_head)}
|
|
||||||
local remote_head=$(get_remote_head)
|
local remote_head=$(get_remote_head)
|
||||||
|
|
||||||
msg "Checking (%s)" "${tree}"
|
msg "Checking %s (%s)" "${tree}" "$os"
|
||||||
if $(has_changes "${local_head}" "${remote_head}");then
|
if $(has_changes "${local_head}" "${remote_head}");then
|
||||||
git pull origin master
|
git pull origin master
|
||||||
fi
|
fi
|
||||||
|
@@ -114,6 +114,7 @@ get_artix_tree(){
|
|||||||
*-openrc) tree=packages-openrc ;;
|
*-openrc) tree=packages-openrc ;;
|
||||||
*-runit) tree=packages-runit ;;
|
*-runit) tree=packages-runit ;;
|
||||||
qt5-*) tree=packages-qt5 ;;
|
qt5-*) tree=packages-qt5 ;;
|
||||||
|
lxqt*|$(get_cases lxqt)) tree=packages-lxqt ;;
|
||||||
# $(get_cases freedesktop)) tree=packages-desktop ;;
|
# $(get_cases freedesktop)) tree=packages-desktop ;;
|
||||||
# $(get_cases kde)) tree=packages-kde ;;
|
# $(get_cases kde)) tree=packages-kde ;;
|
||||||
# $(get_cases gnome)) tree=packages-gnome ;;
|
# $(get_cases gnome)) tree=packages-gnome ;;
|
||||||
|
Reference in New Issue
Block a user