This commit is contained in:
parent
5b1665da26
commit
53393ed8fe
3 changed files with 2 additions and 5 deletions
|
@ -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 .
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -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}"
|
||||||
|
|
|
@ -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
|
|
Loading…
Add table
Reference in a new issue