1
0
forked from artix/artools

Compare commits

...

3 Commits

Author SHA1 Message Date
b019f42ee1 chroot-run: sleep 1 after killing chroot process 2021-07-06 01:18:37 +02:00
205d668630 update pkg conf defaults 2021-07-05 22:36:00 +02:00
3ae2972d2b commitpkg: fix remove commit msg 2021-07-04 23:10:12 +02:00
6 changed files with 20 additions and 13 deletions

View File

@@ -32,6 +32,7 @@ kill_chroot_process(){
fi fi
fi fi
done done
sleep 1
} }
# umask might have been changed in /etc/profile # umask might have been changed in /etc/profile

View File

@@ -115,27 +115,29 @@ path_config() {
. "$pkgbuild" . "$pkgbuild"
} }
get_commit_msg() { get_repo_commit_msg() {
echo "[${repo_src}] -> [${repo_dest}] '${package}-$(get_full_version)' ${action}" echo "[${repo_src}] -> [${repo_dest}] '${package}-$(get_full_version)' ${action}"
} }
get_commit_msg() {
echo "[${repo_src}] '${package}-$(get_full_version)' ${action}"
}
commit_pkg() { commit_pkg() {
local commit_msg pkg local commit_msg pkg
if ${remove}; then if ${remove}; then
action='remove' action='remove'
commit_msg="[${repo_src}] '$pkg' ${action}" commit_msg=$(get_commit_msg)
msg "Action: %s" "$commit_msg" msg "Action: %s" "$commit_msg"
if [[ "${repo_src}" == 'trunk' ]];then if [[ "${repo_src}" == 'trunk' ]];then
pkg=${package}
git rm -r trunk git rm -r trunk
else else
pkg="${package}-$(get_full_version)"
prepare_commit prepare_commit
git rm -r "$CARCH/${repo_src}" git rm -r "$CARCH/${repo_src}"
fi fi
else else
action='modify' action='modify'
commit_msg="[${repo_src}] '${package}-$(get_full_version)' ${action}" commit_msg=$(get_commit_msg)
msg "Action: %s" "$commit_msg" msg "Action: %s" "$commit_msg"
git add . git add .
fi fi
@@ -146,7 +148,7 @@ repo_commit_pkg() {
local commit_msg local commit_msg
if [[ "${repo_src}" == 'trunk' ]]; then if [[ "${repo_src}" == 'trunk' ]]; then
action='add' action='add'
commit_msg=$(get_commit_msg) commit_msg=$(get_repo_commit_msg)
msg "Action: %s" "$commit_msg" msg "Action: %s" "$commit_msg"
prepare_commit prepare_commit
check_rebuild check_rebuild
@@ -154,7 +156,7 @@ repo_commit_pkg() {
else else
action='move' action='move'
[[ ! -f $pkgbuild ]] && die "%s does not exist!" "$pkgbuild" [[ ! -f $pkgbuild ]] && die "%s does not exist!" "$pkgbuild"
commit_msg=$(get_commit_msg) commit_msg=$(get_repo_commit_msg)
msg "Action: %s" "$commit_msg" msg "Action: %s" "$commit_msg"
prepare_commit prepare_commit
cp "$CARCH/${repo_src}"/* "$CARCH/${repo_dest}"/ cp "$CARCH/${repo_src}"/* "$CARCH/${repo_dest}"/

View File

@@ -8,7 +8,7 @@
# the dist release; default: auto # the dist release; default: auto
# ISO_VERSION=$(date +%Y%m%d) # ISO_VERSION=$(date +%Y%m%d)
# possible values: openrc, runit, s6, 66 # possible values: openrc, runit, s6, suite66
# INITSYS="openrc" # INITSYS="openrc"
# gpg key; leave empty or commented to skip img signing # gpg key; leave empty or commented to skip img signing

View File

@@ -13,8 +13,8 @@
# packages-openrc # packages-openrc
# packages-runit # packages-runit
# packages-s6 # packages-s6
# packages-66 # packages-suite66
# packages-python # python-world
# packages-perl # packages-perl
# packages-java # packages-java
# packages-ruby # packages-ruby
@@ -30,6 +30,10 @@
# packages-devel # packages-devel
# packages-lib32 # packages-lib32
# packages-qt6 # packages-qt6
# packages-office
# packages-misc
# packages-python
# python-galaxy
# ) # )
# TREE_DIR_ARCH=${WORKSPACE_DIR}/archlinux # TREE_DIR_ARCH=${WORKSPACE_DIR}/archlinux

View File

@@ -1,12 +1,12 @@
# Maintainer: Your Name <youremail@domain.com> # Maintainer: Your Name <youremail@domain.com>
pkgname=NAME-66 pkgname=NAME-suite66
pkgver=VERSION pkgver=VERSION
pkgrel=1 pkgrel=1
epoch= epoch=
pkgdesc="Suite66 NAME init script" pkgdesc="Suite66 NAME init script"
arch=('any') arch=('any')
url="https://gitea.artixlinux.org/artixlinux/packages-66" url="https://gitea.artixlinux.org/artixlinux/packages-suite66"
license=('GPL2') license=('GPL2')
groups=() groups=()
depends=("suite66-base" "NAME") depends=("suite66-base" "NAME")

View File

@@ -31,7 +31,7 @@ load_pkg_config(){
python-{world,galaxy} python-{world,galaxy}
) )
local init_tree=(packages-{openrc,runit,s6,66}) local init_tree=(packages-{openrc,runit,s6,suite66})
local desktop_tree=( local desktop_tree=(
packages-{kf5,plasma,kde,qt6} packages-{kf5,plasma,kde,qt6}