Compare commits

...

10 Commits

Author SHA1 Message Date
1ea7d2ca8b readme: update deps 2019-02-03 02:31:41 +01:00
3cd8632c61 deoloypkg: add support for debug packages 2019-02-03 01:55:20 +01:00
b425eac181 buildtree: minor msg adjusting 2019-02-03 01:54:55 +01:00
4b2d516258 pkglist: update kernel 2019-02-03 01:54:29 +01:00
defd0c7ad6 buildtree: add option to only sync arch trees 2019-01-31 17:42:54 +01:00
cf0cd1772e set default artix for git & clone 2019-01-31 17:40:36 +01:00
761ccf7644 pkg: fix lxqt case in get_artix_tree() 2019-01-31 17:27:14 +01:00
5684aab444 set msg_row(9 to white for chilean green terminals :p
add lxqt list
update artools.conf
2019-01-31 17:02:19 +01:00
df8d8fb4a0 buildtree: improve msg pull & clone & import 2019-01-29 22:43:27 +01:00
be5fa4af09 buildtree: fix new non arch pkg 2019-01-28 01:56:45 +01:00
10 changed files with 84 additions and 31 deletions

View File

@@ -28,6 +28,7 @@ artools
- pkg:
* namcap
* git-subrepo
* jshon
- iso:
* dosfstools

View File

@@ -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}"
@@ -59,7 +59,7 @@ show_deps(){
local archver=$(get_full_version $pkg)
msg "repo: %s" "$repo"
msg2 "repo: %s" "$repo"
[[ -n ${pkgbase} ]] && msg2 "pkgbase: %s" "${pkgbase}"
msg2 "pkgname: %s" "${pkgname[*]}"
[[ -n $pkgdesc ]] && msg2 "pkgdesc: %s" "${pkgdesc}"
@@ -87,6 +87,7 @@ from_arch(){
dest=${TREE_DIR_ARTIX}/$tree_dir/$pkg/trunk
msg "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}"

View File

@@ -21,7 +21,12 @@ update_repo(){
. PKGBUILD
for name in ${pkgname[@]};do
local pkgsearch=(${pkgname[@]})
if check_option "debug" "y"; then
pkgsearch+=("$pkgbase-debug")
fi
for name in ${pkgsearch[@]}; do
pkgarch=$(get_pkg_arch "$name")
ver=$(get_full_version "$name")
if pkgfile=$(find_cached_package "$name" "$ver" "$pkgarch");then

View File

@@ -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

View File

@@ -1,5 +1,6 @@
linux
nvidia
nvidia-utils
acpi_call
bbswitch
broadcom-wl

31
data/pkglists/lxqt.list Normal file
View 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

View File

@@ -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
}

View File

@@ -23,6 +23,8 @@ create_repo(){
-H "accept: application/json" \
-H "content-type: application/json" \
-d "$json"
echo
}
delete_repo(){

View File

@@ -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

View File

@@ -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 ;;