Now we can generate releases for wofi-calc-git and wofi-calc from the same repo.
This commit is contained in:
parent
7a4289e391
commit
5b3dacd7e5
5 changed files with 65 additions and 16 deletions
|
@ -11,8 +11,8 @@ depends=(wofi libqalculate)
|
||||||
makedepends=(wofi libqalculate)
|
makedepends=(wofi libqalculate)
|
||||||
checkdepends=()
|
checkdepends=()
|
||||||
optdepends=()
|
optdepends=()
|
||||||
provides=(wofi-calc-git)
|
provides=(wofi-calc-git wofi-calc)
|
||||||
conflicts=(wofi-calc-git)
|
conflicts=(wofi-calc-git wofi-calc)
|
||||||
replaces=()
|
replaces=()
|
||||||
backup=()
|
backup=()
|
||||||
options=()
|
options=()
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Description: Generates a new aur release.
|
||||||
|
|
||||||
# Generate the checksums automatically
|
# Generate the checksums automatically
|
||||||
sed -i "s/^sha256sums=.*/$(makepkg -g -f -p PKGBUILD)/" ./PKGBUILD
|
sed -i "s/^sha256sums=.*/$(makepkg -g -f -p PKGBUILD)/" ./PKGBUILD
|
||||||
|
|
36
aur-scripts/wofi-calc/PKGBUILD
Normal file
36
aur-scripts/wofi-calc/PKGBUILD
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
pkgname=wofi-calc
|
||||||
|
pkgver=1.0
|
||||||
|
pkgrel=1
|
||||||
|
epoch=
|
||||||
|
pkgdesc="A simple calculator for wofi, inspired in rofi-calc."
|
||||||
|
arch=(any)
|
||||||
|
url="https://github.com/Zeioth/wofi-calc.git"
|
||||||
|
license=('MIT')
|
||||||
|
groups=()
|
||||||
|
depends=(wofi libqalculate)
|
||||||
|
makedepends=(wofi libqalculate)
|
||||||
|
checkdepends=()
|
||||||
|
optdepends=()
|
||||||
|
provides=(wofi-calc-git wofi-calc)
|
||||||
|
conflicts=(wofi-calc-git wofi-calc)
|
||||||
|
replaces=()
|
||||||
|
backup=()
|
||||||
|
options=()
|
||||||
|
install=
|
||||||
|
changelog=
|
||||||
|
source=("https://raw.githubusercontent.com/Zeioth/wofi-calc/master/wofi-calc.sh")
|
||||||
|
noextract=()
|
||||||
|
sha256sums=('0bc4930e7df685389309198ce214ebf3b88aee71ca0198f586ff0afe6bea716b')
|
||||||
|
validpgpkeys=()
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd "${_pkgname}"
|
||||||
|
printf "1.0.r%s" "$(git rev-list --count --tags)"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
package() {
|
||||||
|
# Note: 'install' is a chmod+cp one-liner command by GNU
|
||||||
|
mkdir -p "$pkgdir"/usr/bin
|
||||||
|
install -m 111 "${srcdir}"/wofi-calc.sh "$pkgdir"/usr/bin/wofi-calc
|
||||||
|
}
|
25
aur-scripts/wofi-calc/push-version.sh
Executable file
25
aur-scripts/wofi-calc/push-version.sh
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
# Description: Generates a new aur release.
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
# TODO: On github/gitlab, create automation to create git version per tag
|
||||||
|
# This is just in case an user tries to download an specific version.
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
# Generate the checksums automatically
|
||||||
|
sed -i "s/^sha256sums=.*/$(makepkg -g -f -p PKGBUILD)/" ./PKGBUILD
|
||||||
|
|
||||||
|
# Generate tag a new tag for the new version
|
||||||
|
git tag $(printf "v1.0.r%s" "$(git rev-list --count HEAD)")
|
||||||
|
|
||||||
|
# Generate pagkage metadata
|
||||||
|
makepkg --printsrcinfo > .SRCINFO
|
||||||
|
|
||||||
|
# Push it to AUR
|
||||||
|
git add PKGBUILD .SRCINFO
|
||||||
|
git commit -m "New version"
|
||||||
|
git push ssh://aur@aur.archlinux.org/wofi-calc.git master
|
||||||
|
|
||||||
|
# Bye
|
||||||
|
echo -e "\n-------------------------------------------------------------------"
|
||||||
|
echo -e "NEW VERSION GENERATED\n"
|
|
@ -1,14 +0,0 @@
|
||||||
# Generate the checksums automatically
|
|
||||||
sed -i "s/^sha256sums=.*/$(makepkg -g -f -p PKGBUILD)/" ./PKGBUILD
|
|
||||||
|
|
||||||
# Generate pagkage metadata
|
|
||||||
makepkg --printsrcinfo > .SRCINFO
|
|
||||||
|
|
||||||
# Push it to AUR
|
|
||||||
git add PKGBUILD .SRCINFO
|
|
||||||
git commit -m "New version"
|
|
||||||
git push ssh://aur@aur.archlinux.org/wofi-calc.git master
|
|
||||||
|
|
||||||
# Bye
|
|
||||||
echo -e "\n-------------------------------------------------------------------"
|
|
||||||
echo -e "NEW VERSION GENERATED\n"
|
|
Loading…
Add table
Reference in a new issue