fix packaging existing version
This commit is contained in:
parent
e94d8a0c50
commit
155027fc9b
3 changed files with 16 additions and 5 deletions
|
@ -7,19 +7,22 @@ rm -vfr tmp
|
|||
mkdir tmp
|
||||
cd tmp
|
||||
ln -s ../src/PKGBUILD ./
|
||||
[ -f '../../release/tmp/regar-x86_64-unknown-linux-gnu.zip' ] && cp ../../release/tmp/regar-x86_64-unknown-linux-gnu.zip ./
|
||||
|
||||
|
||||
makepkg -s
|
||||
wget https://git.barnulf.net/api/packages/mb/generic/regar/latest/regar-x86_64-unknown-linux-gnu.zip
|
||||
checksum="$(sha256sum regar-x86_64-unknown-linux-gnu.zip | cut -d ' ' -f 1)"
|
||||
unzip regar-x86_64-unknown-linux-gnu.zip
|
||||
version="$(./regar -V)"
|
||||
sed -E -i ../src/PKGBUILD -e "s/^sha256sums=.*\$/sha256sums=(\"$checksum\")/g"
|
||||
sed -E -i ../src/PKGBUILD -e "s/^pkgver=.*\$/pkgver=$version/g"
|
||||
|
||||
|
||||
git clone ssh://aur@aur.archlinux.org/regar-bin.git
|
||||
cd regar-bin
|
||||
cp ../../src/PKGBUILD ./PKGBUILD
|
||||
makepkg -sf
|
||||
makepkg --printsrcinfo > .SRCINFO
|
||||
added="$(git add -v .)"
|
||||
added="$(git add -v PKGBUILD .SRCINFO)"
|
||||
if [ ".$added" != "." ]
|
||||
then
|
||||
git commit -m "update"
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
# Maintainer: JOLIMAITRE Matthieu <matthieu@imagevo.fr>
|
||||
pkgname="regar-bin"
|
||||
pkgver=1.0.0
|
||||
pkgver=1.1.0
|
||||
pkgrel=1
|
||||
pkgdesc="Cli for watching file changes and running commands periodically."
|
||||
url="https://git.barnulf.net/mb/regar"
|
||||
arch=("x86_64")
|
||||
license=('MIT')
|
||||
source=("https://git.barnulf.net/api/packages/mb/generic/regar/latest/regar-x86_64-unknown-linux-gnu.zip")
|
||||
sha256sums=("4f04da4f00e74032d86f6a8051d10120588d16ba3d0eb3bf5bd4742f836975ab")
|
||||
sha256sums=("c9b125d06f5085561e80335435baa57697442c3ba0d219cea854eff84f4af1e2")
|
||||
options=("!strip")
|
||||
provides=("regar")
|
||||
|
||||
|
|
|
@ -16,6 +16,14 @@ zip "$artefact" regar
|
|||
du -sh "$artefact"
|
||||
|
||||
|
||||
curl --user "$auth" \
|
||||
--request DELETE \
|
||||
"https://git.barnulf.net/api/packages/mb/generic/regar/$version/$artefact" || true
|
||||
curl --user "$auth" \
|
||||
--request DELETE \
|
||||
"https://git.barnulf.net/api/packages/mb/generic/regar/latest/$artefact" || true
|
||||
|
||||
|
||||
curl --progress-bar \
|
||||
--user "$auth" \
|
||||
--upload-file "$artefact" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue