sha256sum are now automatically generated

instead of using the old md5sum
This commit is contained in:
Zeioth 2022-04-10 20:58:04 +02:00
parent 7e6ecfa759
commit 9fd4142b10
2 changed files with 7 additions and 6 deletions

View file

@ -1,6 +1,6 @@
pkgbase = wofi-calc-git pkgbase = wofi-calc-git
pkgdesc = A simple calculator for wofi, inspired in rofi-calc. pkgdesc = A simple calculator for wofi, inspired in rofi-calc.
pkgver = 1.0.r17.56372a9 pkgver = 1.0.r3.7e6ecfa
pkgrel = 1 pkgrel = 1
url = https://github.com/Zeioth/wofi-calc.git url = https://github.com/Zeioth/wofi-calc.git
arch = any arch = any
@ -12,6 +12,6 @@ pkgbase = wofi-calc-git
provides = wofi-calc-git provides = wofi-calc-git
conflicts = wofi-calc-git conflicts = wofi-calc-git
source = https://raw.githubusercontent.com/Zeioth/wofi-calc/main/wofi-calc.sh source = https://raw.githubusercontent.com/Zeioth/wofi-calc/main/wofi-calc.sh
md5sums = db674463102b04493962f4ed1f3d73fa sha256sums = 0bc4930e7df685389309198ce214ebf3b88aee71ca0198f586ff0afe6bea716b
pkgname = wofi-calc-git pkgname = wofi-calc-git

View file

@ -5,7 +5,7 @@
# Maintainer: Adrian Lopez <zeioth@hotmail.com> # Maintainer: Adrian Lopez <zeioth@hotmail.com>
pkgname=wofi-calc-git pkgname=wofi-calc-git
pkgver=1.0.r17.56372a9 pkgver=1.0.r3.7e6ecfa
pkgrel=1 pkgrel=1
epoch= epoch=
pkgdesc="A simple calculator for wofi, inspired in rofi-calc." pkgdesc="A simple calculator for wofi, inspired in rofi-calc."
@ -26,7 +26,7 @@ install=
changelog= changelog=
source=("https://raw.githubusercontent.com/Zeioth/wofi-calc/main/wofi-calc.sh") source=("https://raw.githubusercontent.com/Zeioth/wofi-calc/main/wofi-calc.sh")
noextract=() noextract=()
md5sums=('db674463102b04493962f4ed1f3d73fa') sha256sums=('0bc4930e7df685389309198ce214ebf3b88aee71ca0198f586ff0afe6bea716b')
validpgpkeys=() validpgpkeys=()
pkgver() { pkgver() {
@ -35,6 +35,7 @@ pkgver() {
} }
package() { package() {
sudo cp "${srcdir}"/wofi-calc/wofi-calc.sh /usr/bin/wofi-calc # Note: 'install' is a chmod+cp one-liner command by GNU
sudo chmod u+x /usr/bin/wofi-calc mkdir -p "$pkgdir"/usr/bin
install -m 111 "${srcdir}"/wofi-calc.sh "$pkgdir"/usr/bin/wofi-calc
} }