Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
c19b80adbd | |||
1812296bc3 | |||
cfb3ced261 | |||
77c7d1db8e | |||
eb9f03c5c1 | |||
16d0c1759d |
@@ -385,9 +385,11 @@ main() {
|
||||
sync_chroot "$chrootdir/root" "$copydir" "$copy"
|
||||
fi
|
||||
|
||||
bindmounts_rw+=("${PWD}:/startdir" "${SRCDEST}:/srcdest")
|
||||
|
||||
$update_first && chroot-run \
|
||||
-r "${bindmounts_ro[@]}" \
|
||||
-w "${bindmounts_rw[@]}" \
|
||||
-r "${bindmounts_ro[*]}" \
|
||||
-w "${bindmounts_rw[*]}" \
|
||||
"$copydir" \
|
||||
pacman -Syu --noconfirm
|
||||
|
||||
@@ -407,8 +409,6 @@ main() {
|
||||
|
||||
prepare_chroot "$copydir" "$USER_HOME" "$keepbuilddir" "$run_namcap"
|
||||
|
||||
bindmounts_rw+=("${PWD}:/startdir" "${SRCDEST}:/srcdest")
|
||||
|
||||
if chroot-run \
|
||||
-r "${bindmounts_ro[*]}" \
|
||||
-w "${bindmounts_rw[*]}" \
|
||||
|
@@ -79,14 +79,15 @@ write_details() {
|
||||
}
|
||||
|
||||
write_pkg_yaml(){
|
||||
local pkgfile=$(makepkg --packagelist)
|
||||
|
||||
Yaml=$(write_yaml_header)
|
||||
|
||||
Yaml+=$(write_empty_line)
|
||||
|
||||
pkgbase=${pkgbase:-${pkgname[0]}}
|
||||
|
||||
Yaml+=$(write_yaml_map 0 "pkgbase")
|
||||
Yaml+=$(write_yaml_map 2 "pkgname" "${pkgbase:-${pkgname[0]}}")
|
||||
Yaml+=$(write_yaml_map 2 "pkgname" "${pkgbase}")
|
||||
${details} && write_details ''
|
||||
|
||||
Yaml+=$(write_empty_line)
|
||||
@@ -99,6 +100,8 @@ write_pkg_yaml(){
|
||||
|
||||
Yaml+=$(write_empty_line)
|
||||
|
||||
local pkgfile=$(print_all_package_names)
|
||||
|
||||
Yaml+=$(write_yaml_map 0 "pkgfile")
|
||||
for f in ${pkgfile[@]};do
|
||||
Yaml+=$(write_yaml_seq 2 "${f##*/}")
|
||||
@@ -136,4 +139,6 @@ PACKAGE="$1"/PKGBUILD; shift
|
||||
|
||||
. "$PACKAGE"
|
||||
|
||||
. /etc/makepkg.conf
|
||||
|
||||
write_pkg_yaml
|
||||
|
@@ -1,4 +1,6 @@
|
||||
#!/hint/bash
|
||||
# shellcheck disable=2034
|
||||
|
||||
#
|
||||
# /etc/makepkg.conf
|
||||
#
|
||||
@@ -37,8 +39,8 @@ CHOST="x86_64-pc-linux-gnu"
|
||||
|
||||
#-- Compiler and Linker Flags
|
||||
CPPFLAGS="-D_FORTIFY_SOURCE=2"
|
||||
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"
|
||||
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt"
|
||||
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
|
||||
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt"
|
||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
||||
#-- Make Flags: change this for DistCC/SMP systems
|
||||
#MAKEFLAGS="-j2"
|
||||
@@ -143,3 +145,5 @@ COMPRESSZ=(compress -c -f)
|
||||
#
|
||||
PKGEXT='.pkg.tar.xz'
|
||||
SRCEXT='.src.tar.gz'
|
||||
|
||||
# vim: set ft=sh ts=2 sw=2 et:
|
||||
|
@@ -63,7 +63,7 @@ load_profile(){
|
||||
|
||||
PASSWORD=${PASSWORD:-'artix'}
|
||||
|
||||
ADDGROUPS=${ADDGROUPS:-"video,power,cdrom,network,lp,scanner,wheel,users,log"}
|
||||
ADDGROUPS=${ADDGROUPS:-"video,power,optical,network,lp,scanner,wheel,users,log"}
|
||||
|
||||
if [[ -z ${SERVICES[@]} ]];then
|
||||
SERVICES=('acpid' 'bluetooth' 'cronie' 'cupsd' 'syslog-ng' 'NetworkManager')
|
||||
|
@@ -98,14 +98,14 @@ get_cases(){
|
||||
|
||||
local cases=
|
||||
for p in ${pkgs[@]};do
|
||||
cases=${p:+}${p:-|}${p}
|
||||
cases=${cases:-}${cases:+|}${p}
|
||||
done
|
||||
echo $cases
|
||||
}
|
||||
|
||||
get_artix_tree(){
|
||||
local pkg="$1" artix_tree="${2:-$3}" tree
|
||||
case $pkg in
|
||||
eval "case $pkg in
|
||||
$(get_cases kernel)) tree=packages-kernel ;;
|
||||
python-*|python2-*) tree=packages-python ;;
|
||||
perl-*) tree=packages-perl ;;
|
||||
@@ -115,12 +115,14 @@ get_artix_tree(){
|
||||
*-runit) tree=packages-runit ;;
|
||||
qt5-*) tree=packages-qt5 ;;
|
||||
lxqt*|$(get_cases lxqt)) tree=packages-lxqt ;;
|
||||
*) tree=$artix_tree
|
||||
esac"
|
||||
echo $tree
|
||||
|
||||
# $(get_cases freedesktop)) tree=packages-desktop ;;
|
||||
# $(get_cases kde)) tree=packages-kde ;;
|
||||
# $(get_cases gnome)) tree=packages-gnome ;;
|
||||
*) tree=$artix_tree
|
||||
esac
|
||||
echo $tree
|
||||
|
||||
}
|
||||
|
||||
get_import_path(){
|
||||
|
Reference in New Issue
Block a user