mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-02-03 15:27:22 +08:00
28 lines
954 B
Bash
Executable File
28 lines
954 B
Bash
Executable File
#!/usr/bin/env bash
|
|
SCRIPT_DIR=$( dirname $( readlink -e $0 ) )
|
|
source "$SCRIPT_DIR/../.build-lib/ci-library.sh"
|
|
|
|
# prepare the build environment
|
|
_log command "Setting up locale.conf..."
|
|
_do touch "/etc/locale.conf"
|
|
_do sh -c "echo 'LANG=C' >> '/etc/locale.conf'"
|
|
_do sh -c "echo 'LC_MESSAGES=C' >> '/etc/locale.conf'"
|
|
|
|
# create a local makepkg settings
|
|
_log command "Setting up makepkg.conf..."
|
|
_do echo "source /etc/makepkg.conf
|
|
|
|
#-- Make Flags: change this for DistCC/SMP systems
|
|
MAKEFLAGS=\"-j$(($(nproc)+1))\"
|
|
|
|
#-- Packager: name/email of the person or organization building packages
|
|
PACKAGER=\"$GITLAB_USER_ID <$GITLAB_USER_EMAIL>\"" > /home/builder/makepkg.conf
|
|
|
|
# patch current makepkg with chakra custom mods
|
|
_log command "Patching makepkg..."
|
|
_do wget https://code.chakralinux.org/tools/chakrabuildsystem/raw/master/chakra/bin/makepkg
|
|
_do cp makepkg /usr/bin/makepkg
|
|
|
|
# force to use the default chakra rsync
|
|
# sed -i '1s/^/<added text> /' file
|