dont rebuild
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nyyu 2021-05-19 11:53:25 +02:00
parent 103a0b092e
commit be335a4b6d

View File

@ -1,11 +1,17 @@
#!/bin/bash
build() {
if makepkg -s --skippgpcheck --noconfirm ; then
for pkg in *.pkg.tar.zst ; do
cp "$pkg" /repo/
repo-add /repo/nyyu.db.tar.zst /repo/"$pkg"
done
name=$(grep 'pkgname=' PKGBUILD | cut -d'=' -f2)
ver=$(grep 'pkgver=' PKGBUILD | cut -d'=' -f2)
rel=$(grep 'pkgrel=' PKGBUILD | cut -d'=' -f2)
if ! compgen -G "/repo/$name-$ver-$rel-*.pkg.tar.zst" ; then
if makepkg -s --skippgpcheck --noconfirm ; then
for pkg in *.pkg.tar.zst ; do
cp "$pkg" /repo/
repo-add /repo/nyyu.db.tar.zst /repo/"$pkg"
done
fi
fi
}