forked from artix/artools
		
	Compare commits
	
		
			6 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| defd0c7ad6 | |||
| cf0cd1772e | |||
| 761ccf7644 | |||
| 5684aab444 | |||
| df8d8fb4a0 | |||
| be5fa4af09 | 
| @@ -20,10 +20,10 @@ pull_tree_arch(){ | ||||
|     for tree in ${TREE_NAMES_ARCH[@]};do | ||||
|         if [[ -d ${tree} ]];then | ||||
|             cd ${tree} | ||||
|             pull_tree "${tree}" | ||||
|             pull_tree "${tree}" "$(get_local_head)" "Arch" | ||||
|             cd .. | ||||
|         else | ||||
|             clone_tree "${HOST_TREE_ARCH}" "${tree}" | ||||
|             clone_tree "${HOST_TREE_ARCH}" "${tree}" "Arch" | ||||
|         fi | ||||
|     done | ||||
| } | ||||
| @@ -34,7 +34,7 @@ pull_tree_artix(){ | ||||
|         if [[ -d ${tree} ]];then | ||||
|             config_tree "${tree}" | ||||
|             cd ${tree} | ||||
|             pull_tree "${tree}" | ||||
|             pull_tree "${tree}" "$(get_local_head)" | ||||
|             cd .. | ||||
|         else | ||||
|             clone_tree "${HOST_TREE_ARTIX}" "${tree}" | ||||
| @@ -87,6 +87,7 @@ from_arch(){ | ||||
|  | ||||
|     dest=${TREE_DIR_ARTIX}/$tree_dir/$pkg/trunk | ||||
|  | ||||
|     msg "artix tree: %s" "$tree_dir" | ||||
|     show_deps "$src" "$repo" | ||||
|  | ||||
|     if [[ -d $dest ]];then | ||||
| @@ -122,7 +123,7 @@ view_build(){ | ||||
|  | ||||
| sync_repos(){ | ||||
|     ${sync_arch} && pull_tree_arch | ||||
|     pull_tree_artix | ||||
|     ${sync_artix} && pull_tree_artix | ||||
| } | ||||
|  | ||||
| load_user_info | ||||
| @@ -133,6 +134,7 @@ load_vars /etc/makepkg.conf | ||||
|  | ||||
| sync=false | ||||
| sync_arch=true | ||||
| sync_artix=true | ||||
| import=false | ||||
| view=false | ||||
| createnew=false | ||||
| @@ -140,20 +142,21 @@ conf=false | ||||
|  | ||||
| PACKAGE='' | ||||
|  | ||||
| TEAM=${TREE_NAMES[0]} | ||||
| SUBORG='' | ||||
| TEAM=${TREE_NAMES_ARTIX[0]} | ||||
| GROUP=${TREE_NAMES_ARTIX[0]} | ||||
|  | ||||
| usage() { | ||||
|     echo "Usage: ${0##*/} [options]" | ||||
|     echo '    -p <pkg>      Package name' | ||||
|     echo '    -t <team>     Team name (only with -n)' | ||||
|     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 "    -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 '    -n            Make new remote subrepo and clone it' | ||||
|     echo '    -c            Configure subrepo url' | ||||
|     echo '    -v            View package depends' | ||||
|     echo '    -h            This help' | ||||
|     echo '' | ||||
| @@ -163,19 +166,19 @@ usage() { | ||||
|  | ||||
| orig_argv=("$0" "$@") | ||||
|  | ||||
| opts='p:t:o:csinzvh' | ||||
| opts='p:t:g:sinzyvh' | ||||
|  | ||||
| while getopts "${opts}" arg; do | ||||
|     case "${arg}" in | ||||
|         p) PACKAGE="$OPTARG" ;; | ||||
|         t) TEAM="$OPTARG" ;; | ||||
|         o) SUBORG="$OPTARG" ;; | ||||
|         g) GROUP="$OPTARG" ;; | ||||
|         s) sync=true ;; | ||||
|         z) sync_arch=false ;; | ||||
|         y) sync_artix=false ;; | ||||
|         i) import=true ;; | ||||
|         n) createnew=true ;; | ||||
|         v) view=true ;; | ||||
|         c) conf=true ;; | ||||
|         h|?) usage 0 ;; | ||||
|         *) echo "invalid argument '${arg}'"; usage 1 ;; | ||||
|     esac | ||||
| @@ -192,6 +195,4 @@ ${view} && view_build "${PACKAGE}" | ||||
|  | ||||
| ${import} && from_arch "${PACKAGE}" | ||||
|  | ||||
| ${createnew} && subrepo_new "${PACKAGE}" "${TEAM}" | ||||
|  | ||||
| ${conf} && subrepo_config "${PACKAGE}" "${SUBORG}" | ||||
| ${createnew} && subrepo_new "${PACKAGE}" "${GROUP}" "${TEAM}" | ||||
|   | ||||
| @@ -17,8 +17,27 @@ | ||||
|  | ||||
| # 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 | ||||
|  | ||||
| # TREE_DIR_ARCH=${WORKSPACE_DIR}/archlinux | ||||
|  | ||||
| # TREE_NAMES_ARCH=(packages community) | ||||
|  | ||||
| # default repos root | ||||
| # REPOS_ROOT=${WORKSPACE_DIR}/repos | ||||
|  | ||||
|   | ||||
							
								
								
									
										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(){ | ||||
|     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(){ | ||||
|     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 "content-type: application/json" \ | ||||
|         -d "$json" | ||||
|  | ||||
|     echo | ||||
| } | ||||
|  | ||||
| delete_repo(){ | ||||
|   | ||||
| @@ -39,14 +39,6 @@ subrepo_push(){ | ||||
|     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(){ | ||||
|     local pkg="$1" | ||||
|     msg2 "Clean (%s)" "$pkg" | ||||
| @@ -67,9 +59,9 @@ subrepo_clone(){ | ||||
| } | ||||
|  | ||||
| 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) ..." "$tree" "$os" | ||||
|  | ||||
|     git clone $url/$tree.git | ||||
|     show_elapsed_time "${FUNCNAME}" "${timer}" | ||||
| @@ -87,11 +79,10 @@ has_changes(){ | ||||
| } | ||||
|  | ||||
| pull_tree(){ | ||||
|     local tree="$1" | ||||
|     local local_head=${2:-$(get_local_head)} | ||||
|     local tree="$1" local_head="$2" os="${3:-$(get_osname)}" | ||||
|     local remote_head=$(get_remote_head) | ||||
|  | ||||
|     msg "Checking (%s)" "${tree}" | ||||
|     msg "Checking %s (%s)" "${tree}" "$os" | ||||
|     if $(has_changes "${local_head}" "${remote_head}");then | ||||
|         git pull origin master | ||||
|     fi | ||||
|   | ||||
| @@ -114,6 +114,7 @@ get_artix_tree(){ | ||||
|         *-openrc) tree=packages-openrc ;; | ||||
|         *-runit) tree=packages-runit ;; | ||||
|         qt5-*) tree=packages-qt5 ;; | ||||
|         lxqt*|$(get_cases lxqt)) tree=packages-lxqt ;; | ||||
| #         $(get_cases freedesktop)) tree=packages-desktop ;; | ||||
| #         $(get_cases kde)) tree=packages-kde ;; | ||||
| #         $(get_cases gnome)) tree=packages-gnome ;; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user