Compare commits
3 Commits
c8b1848e10
...
4b0efe2d96
Author | SHA1 | Date | |
---|---|---|---|
4b0efe2d96 | |||
82202b777c | |||
ee60a80f09 |
12
.SRCINFO
12
.SRCINFO
@ -1,16 +1,16 @@
|
|||||||
pkgbase = pman-helper
|
pkgbase = pman-helper
|
||||||
pkgdesc = A pacman helper script, because you forget all the stupid flags
|
pkgdesc = A pacman helper script, because you forget all the stupid flags
|
||||||
pkgver = 1.1.2
|
pkgver = 1.2.0
|
||||||
pkgrel = 1
|
pkgrel = 2
|
||||||
url = https://git.bjphoster.com/source/pman
|
url = https://git.bjphoster.com/source/pman
|
||||||
arch = any
|
arch = any
|
||||||
license = MIT
|
license = MIT
|
||||||
depends = bash
|
depends = bash
|
||||||
depends = pacman
|
depends = pacman
|
||||||
conflicts = pman
|
conflicts = pman
|
||||||
source = https://git.bjphoster.com/source/pman/archive/1.1.2.tar.gz
|
source = https://git.bjphoster.com/source/pman/archive/1.2.0.tar.gz
|
||||||
md5sums = 33cd29b90bcf74946489e39271cbeb99
|
md5sums = 5b424b1b6900b4f8cdcd8a5388be55aa
|
||||||
sha1sums = af045144e207157c2e615cedf615e68a07c1af85
|
sha1sums = df1f0c0d476619fa6994c72c94f0fd50e08fa74c
|
||||||
sha256sums = 9ac3b495130d8d296e8cda1c9fdf7a908679c722ab746cdc8ff2e85606dac88a
|
sha256sums = 400980f9d8e4d8df3f95cf8c7430922586ba389289a80d0ba18d127f095d1d84
|
||||||
|
|
||||||
pkgname = pman-helper
|
pkgname = pman-helper
|
||||||
|
2
PKGBUILD
2
PKGBUILD
@ -3,7 +3,7 @@
|
|||||||
_pkgname="pman"
|
_pkgname="pman"
|
||||||
pkgname="$_pkgname-helper"
|
pkgname="$_pkgname-helper"
|
||||||
pkgver="1.2.0"
|
pkgver="1.2.0"
|
||||||
pkgrel="1"
|
pkgrel="2"
|
||||||
pkgdesc="A pacman helper script, because you forget all the stupid flags"
|
pkgdesc="A pacman helper script, because you forget all the stupid flags"
|
||||||
url="https://git.bjphoster.com/source/${_pkgname}"
|
url="https://git.bjphoster.com/source/${_pkgname}"
|
||||||
arch=("any")
|
arch=("any")
|
||||||
|
5
push.sh
5
push.sh
@ -7,7 +7,7 @@ else
|
|||||||
read -p "Version: " pkgver
|
read -p "Version: " pkgver
|
||||||
fi
|
fi
|
||||||
# Check version
|
# Check version
|
||||||
pkgname=$(grep "pkgver=" PKGBUILD | sed 's/pkgver="//;s/"//')
|
oldver=$(grep "pkgver=" PKGBUILD | sed 's/pkgver="//;s/"//')
|
||||||
if [ "$pkgver" = "$oldver" ]; then
|
if [ "$pkgver" = "$oldver" ]; then
|
||||||
echo >/dev/stderr "Error: same (old) version specified - update aborted"
|
echo >/dev/stderr "Error: same (old) version specified - update aborted"
|
||||||
exit 1
|
exit 1
|
||||||
@ -35,6 +35,9 @@ sed -i -E "s/^sha1sums=\(\"[^\"]+\"\)/sha1sums=(\"$sha1sum\")/" PKGBUILD
|
|||||||
sed -i -E "s/^sha256sums=\(\"[^\"]+\"\)/sha256sums=(\"$sha256sum\")/" PKGBUILD
|
sed -i -E "s/^sha256sums=\(\"[^\"]+\"\)/sha256sums=(\"$sha256sum\")/" PKGBUILD
|
||||||
sed -i -E "s/^md5sums=\(\"[^\"]+\"\)/md5sums=(\"$md5sum\")/" PKGBUILD
|
sed -i -E "s/^md5sums=\(\"[^\"]+\"\)/md5sums=(\"$md5sum\")/" PKGBUILD
|
||||||
|
|
||||||
|
# Update .SRCINFO
|
||||||
|
makepkg --printsrcinfo > .SRCINFO
|
||||||
|
|
||||||
# In case of fire, git commit, git push, leave building
|
# In case of fire, git commit, git push, leave building
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Updated $pkgname to $pkgver"
|
git commit -m "Updated $pkgname to $pkgver"
|
||||||
|
Loading…
Reference in New Issue
Block a user