This commit is contained in:
parent
103a0b092e
commit
be335a4b6d
16
build.sh
16
build.sh
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user