fix: update build
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2023-03-18 13:43:33 +01:00
parent 5b1665da26
commit 53393ed8fe
3 changed files with 2 additions and 5 deletions

View file

@ -10,7 +10,7 @@ pipeline:
- sed -i 's/# REPOSITORIES/[nyyu]\nServer = https:\\/\\/archlinux.nyyu.dev\\/nyyu\nSigLevel = Never/' /etc/pacman.conf - sed -i 's/# REPOSITORIES/[nyyu]\nServer = https:\\/\\/archlinux.nyyu.dev\\/nyyu\nSigLevel = Never/' /etc/pacman.conf
- sed -i 's/#PACKAGER=".*"/PACKAGER="nyyu <mail@nyyu.dev>"/' /etc/makepkg.conf - sed -i 's/#PACKAGER=".*"/PACKAGER="nyyu <mail@nyyu.dev>"/' /etc/makepkg.conf
- pacman-key --init - pacman-key --init
- pacman -Syu git jq pacman-contrib pandoc-bin unzip db --noconfirm - pacman -Syu git jq pacman-contrib pandoc-bin unzip --noconfirm
- useradd build -m - useradd build -m
- "echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers" - "echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
- chown -R build:build . - chown -R build:build .

View file

@ -27,7 +27,7 @@ build() {
fi fi
if ! compgen -G "/repo/${name}-${epoch}${ver}-${rel}-*.pkg.tar.zst" >/dev/null; then if ! compgen -G "/repo/${name}-${epoch}${ver}-${rel}-*.pkg.tar.zst" >/dev/null; then
if makepkg -s --nodeps --skippgpcheck --noconfirm --sign || makepkg -s --skippgpcheck --noconfirm --sign || makepkg -s --skippgpcheck --nocheck --noconfirm --sign; then if makepkg --nodeps --skippgpcheck --noconfirm --sign || makepkg -C -s --skippgpcheck --noconfirm --sign || makepkg -C -s --skippgpcheck --nocheck --noconfirm --sign; then
for pkg in *.pkg.tar.zst; do for pkg in *.pkg.tar.zst; do
cp "${pkg}"{,.sig} /repo/ cp "${pkg}"{,.sig} /repo/
repo-add -R -s /repo/nyyu.db.tar.zst /repo/"${pkg}" repo-add -R -s /repo/nyyu.db.tar.zst /repo/"${pkg}"

View file

@ -5,9 +5,6 @@ source ../.util.sh
ver=$(curl -s --head https://download.sonatype.com/nexus/3/latest-unix.tar.gz | grep location | cut -d' ' -f2) ver=$(curl -s --head https://download.sonatype.com/nexus/3/latest-unix.tar.gz | grep location | cut -d' ' -f2)
ver=${ver%-unix*} ver=${ver%-unix*}
ver=${ver##*nexus-} ver=${ver##*nexus-}
echo $ver
array=(${ver//-/ }) array=(${ver//-/ })
sed -i "s/_version=.*/_version=${array[0]}/" PKGBUILD sed -i "s/_version=.*/_version=${array[0]}/" PKGBUILD
sed -i "s/_patch=.*/_patch=${array[1]}/" PKGBUILD sed -i "s/_patch=.*/_patch=${array[1]}/" PKGBUILD
update_pkg