generated from archlinux/template
Compare commits
43 Commits
9e0fe12fb8
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c61adc1c0 | ||
|
|
83dc262b70 | ||
|
|
f97fdd3b8f | ||
|
|
9a2c2da3cc | ||
|
|
e885796b35 | ||
|
|
28f8ef3608 | ||
|
|
190b1b4af5 | ||
|
|
b9ab68d70d | ||
|
|
02f79198b8 | ||
|
|
cc106c0def | ||
|
|
822d1669c2 | ||
|
|
533ab053ca | ||
|
|
5e70d392b8 | ||
|
|
0eac60410d | ||
|
|
1dffa77474 | ||
|
|
1119682d22 | ||
|
|
d3194503d6 | ||
|
|
0955e1a428 | ||
|
|
a322940d78 | ||
| f04bad9eb6 | |||
| 9f69cd1fa2 | |||
| 1f74c068b1 | |||
| 522ec133d6 | |||
|
|
2266d22fbb | ||
| fbbb973dd7 | |||
| 0452f8c1c3 | |||
| 43fde90190 | |||
| ea386848c6 | |||
| 6aa1c92272 | |||
| a801fc441d | |||
| a82b4a1be3 | |||
|
|
c26481fa3e | ||
| 7510877f5b | |||
|
|
59714d8ae3 | ||
|
|
696f2ef550 | ||
|
|
fcb8021204 | ||
|
|
505cdeafa3 | ||
|
|
27646b6e74 | ||
| cf639fbc21 | |||
| 7891ded64b | |||
|
|
88dd7213d6 | ||
| 2748fdf24b | |||
| 278496c699 |
8
.SRCINFO
8
.SRCINFO
@@ -1,6 +1,6 @@
|
|||||||
pkgbase = yay
|
pkgbase = yay
|
||||||
pkgdesc = Yet another yogurt. Pacman wrapper and AUR helper written in go.
|
pkgdesc = Yet another yogurt. Pacman wrapper and AUR helper written in go.
|
||||||
pkgver = 12.4.2
|
pkgver = 12.5.3
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/Jguer/yay
|
url = https://github.com/Jguer/yay
|
||||||
arch = i686
|
arch = i686
|
||||||
@@ -12,13 +12,13 @@ pkgbase = yay
|
|||||||
arch = aarch64
|
arch = aarch64
|
||||||
arch = riscv64
|
arch = riscv64
|
||||||
license = GPL-3.0-or-later
|
license = GPL-3.0-or-later
|
||||||
makedepends = go>=1.21
|
makedepends = go>=1.24
|
||||||
depends = pacman>6.1
|
depends = pacman>6.1
|
||||||
depends = git
|
depends = git
|
||||||
optdepends = sudo: privilege elevation
|
optdepends = sudo: privilege elevation
|
||||||
optdepends = doas: privilege elevation
|
optdepends = doas: privilege elevation
|
||||||
options = !lto
|
options = !lto
|
||||||
source = yay-12.4.2.tar.gz::https://github.com/Jguer/yay/archive/v12.4.2.tar.gz
|
source = yay-12.5.3.tar.gz::https://github.com/Jguer/yay/archive/v12.5.3.tar.gz
|
||||||
sha256sums = f3f4af5d84f75abc3ea726f192568bdf570e2632b4b3c214effa4bba406ad293
|
sha256sums = 7ea30d870a7c0e817376fa4ce42753ec201638eed958fe36a71abc0b31ff6a77
|
||||||
|
|
||||||
pkgname = yay
|
pkgname = yay
|
||||||
|
|||||||
24
.gitea/workflows/bump-pkgrel.sh
Executable file
24
.gitea/workflows/bump-pkgrel.sh
Executable file
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Run your check script
|
||||||
|
.gitea/workflows/check-up-to-date.sh
|
||||||
|
RETVAL=$?
|
||||||
|
|
||||||
|
if [ $RETVAL -eq 1 ]; then
|
||||||
|
echo "Changes detected, bumping pkgrel..."
|
||||||
|
|
||||||
|
# Use sed to increment pkgrel in the PKGBUILD file
|
||||||
|
sed -i -E 's/^(pkgrel=)([0-9]+)/echo "\1$((\2 + 1))"/e' PKGBUILD
|
||||||
|
|
||||||
|
# Get the new pkgrel value for the commit message
|
||||||
|
NEW_PKGREL=$(grep ^pkgrel= PKGBUILD | cut -d= -f2)
|
||||||
|
|
||||||
|
# Add, commit, and push the change
|
||||||
|
git add PKGBUILD
|
||||||
|
git commit -m "Bump pkgrel to ${NEW_PKGREL}"
|
||||||
|
git push
|
||||||
|
|
||||||
|
echo "pkgrel bumped to ${NEW_PKGREL} and changes pushed."
|
||||||
|
else
|
||||||
|
echo "No changes detected. Nothing to do."
|
||||||
|
fi
|
||||||
@@ -5,74 +5,19 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
|
||||||
name: Update from AUR
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Configure Git
|
|
||||||
run: |
|
|
||||||
git config user.email "sebastiaan.de.schaetzen+archlinux@gmail.com"
|
|
||||||
git config user.name "Sebastiaan de Schaetzen (automated)"
|
|
||||||
|
|
||||||
- name: Add AUR repository
|
|
||||||
run: git remote add aur https://aur.archlinux.org/yay.git
|
|
||||||
|
|
||||||
- name: Fetch AUR
|
|
||||||
run: git fetch aur
|
|
||||||
|
|
||||||
- name: Merge latest changes
|
|
||||||
run: |
|
|
||||||
git merge aur/master
|
|
||||||
git status
|
|
||||||
|
|
||||||
- name: Push changes (if any)
|
|
||||||
run: git push origin master
|
|
||||||
|
|
||||||
wake:
|
wake:
|
||||||
name: Wake Runner
|
name: Wake Runner
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: update
|
|
||||||
steps:
|
steps:
|
||||||
- name: Wakeup Runner
|
- name: Wakeup Runner
|
||||||
run: |
|
run: |
|
||||||
curl https://idlesleep.wolproxy.seeseepuff.be/status
|
curl https://idlesleep.wolproxy.seeseepuff.be/status
|
||||||
|
|
||||||
check:
|
|
||||||
name: Check if rebuild is necessary
|
|
||||||
runs-on: ubuntu-amd64
|
|
||||||
needs: wake
|
|
||||||
outputs:
|
|
||||||
up-to-date: ${{ steps.up-to-date.outputs.exit_code }}
|
|
||||||
container:
|
|
||||||
image: gitea.seeseepuff.be/archlinux/archlinux:latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Ensure image is up-to-date
|
|
||||||
run: |
|
|
||||||
sudo pacman -Sy --noconfirm
|
|
||||||
|
|
||||||
- name: Check if rebuild is necessary
|
|
||||||
id: up-to-date
|
|
||||||
run: |
|
|
||||||
set +e
|
|
||||||
.gitea/workflows/up-to-date.sh
|
|
||||||
echo "exit_code=$?" >> "$GITHUB_OUTPUT"
|
|
||||||
set -e
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build and Push
|
name: Build and Push
|
||||||
runs-on: ubuntu-amd64
|
runs-on: ubuntu-amd64
|
||||||
needs: check
|
|
||||||
container:
|
container:
|
||||||
image: gitea.seeseepuff.be/archlinux/archlinux:latest
|
image: gitea.seeseepuff.be/archlinux/archlinux:latest
|
||||||
if: needs.check.outputs.up-to-date == '1'
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@@ -80,10 +25,6 @@ jobs:
|
|||||||
- name: Ensure image is up-to-date
|
- name: Ensure image is up-to-date
|
||||||
run: |
|
run: |
|
||||||
sudo pacman -Syu --noconfirm
|
sudo pacman -Syu --noconfirm
|
||||||
|
|
||||||
- name: Check if rebuild is necessary
|
|
||||||
run: |
|
|
||||||
.gitea/workflows/up-to-date.sh
|
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
7
PKGBUILD
7
PKGBUILD
@@ -1,6 +1,6 @@
|
|||||||
# Maintainer: Jguer <pkgbuilds at jguer.space>
|
# Maintainer: Jguer <pkgbuilds at jguer.space>
|
||||||
pkgname=yay
|
pkgname=yay
|
||||||
pkgver=12.4.2
|
pkgver=12.5.3
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
|
pkgdesc="Yet another yogurt. Pacman wrapper and AUR helper written in go."
|
||||||
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64' 'riscv64')
|
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64' 'riscv64')
|
||||||
@@ -15,10 +15,9 @@ optdepends=(
|
|||||||
'sudo: privilege elevation'
|
'sudo: privilege elevation'
|
||||||
'doas: privilege elevation'
|
'doas: privilege elevation'
|
||||||
)
|
)
|
||||||
makedepends=('go>=1.21'
|
makedepends=('go>=1.24')
|
||||||
'helloworld')
|
|
||||||
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
|
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Jguer/yay/archive/v${pkgver}.tar.gz")
|
||||||
sha256sums=('f3f4af5d84f75abc3ea726f192568bdf570e2632b4b3c214effa4bba406ad293')
|
sha256sums=('7ea30d870a7c0e817376fa4ce42753ec201638eed958fe36a71abc0b31ff6a77')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
export GOPATH="$srcdir"/gopath
|
export GOPATH="$srcdir"/gopath
|
||||||
|
|||||||
Reference in New Issue
Block a user