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
|
mkdir tmp
|
||||||
cd tmp
|
cd tmp
|
||||||
ln -s ../src/PKGBUILD ./
|
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)"
|
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/^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
|
git clone ssh://aur@aur.archlinux.org/regar-bin.git
|
||||||
cd regar-bin
|
cd regar-bin
|
||||||
cp ../../src/PKGBUILD ./PKGBUILD
|
cp ../../src/PKGBUILD ./PKGBUILD
|
||||||
|
makepkg -sf
|
||||||
makepkg --printsrcinfo > .SRCINFO
|
makepkg --printsrcinfo > .SRCINFO
|
||||||
added="$(git add -v .)"
|
added="$(git add -v PKGBUILD .SRCINFO)"
|
||||||
if [ ".$added" != "." ]
|
if [ ".$added" != "." ]
|
||||||
then
|
then
|
||||||
git commit -m "update"
|
git commit -m "update"
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
# Maintainer: JOLIMAITRE Matthieu <matthieu@imagevo.fr>
|
# Maintainer: JOLIMAITRE Matthieu <matthieu@imagevo.fr>
|
||||||
pkgname="regar-bin"
|
pkgname="regar-bin"
|
||||||
pkgver=1.0.0
|
pkgver=1.1.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Cli for watching file changes and running commands periodically."
|
pkgdesc="Cli for watching file changes and running commands periodically."
|
||||||
url="https://git.barnulf.net/mb/regar"
|
url="https://git.barnulf.net/mb/regar"
|
||||||
arch=("x86_64")
|
arch=("x86_64")
|
||||||
license=('MIT')
|
license=('MIT')
|
||||||
source=("https://git.barnulf.net/api/packages/mb/generic/regar/latest/regar-x86_64-unknown-linux-gnu.zip")
|
source=("https://git.barnulf.net/api/packages/mb/generic/regar/latest/regar-x86_64-unknown-linux-gnu.zip")
|
||||||
sha256sums=("4f04da4f00e74032d86f6a8051d10120588d16ba3d0eb3bf5bd4742f836975ab")
|
sha256sums=("c9b125d06f5085561e80335435baa57697442c3ba0d219cea854eff84f4af1e2")
|
||||||
options=("!strip")
|
options=("!strip")
|
||||||
provides=("regar")
|
provides=("regar")
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,14 @@ zip "$artefact" regar
|
||||||
du -sh "$artefact"
|
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 \
|
curl --progress-bar \
|
||||||
--user "$auth" \
|
--user "$auth" \
|
||||||
--upload-file "$artefact" \
|
--upload-file "$artefact" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue