generated from archlinux/template
Compare commits
46 Commits
179b744dec
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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 | |||
| 9e0fe12fb8 | |||
| 493df388b6 | |||
| 376b828fc0 | |||
| 1237f01c6e | |||
| f7f8a6ed92 | |||
| 4c3f415759 | |||
| a383314040 | |||
| cec6417f14 | |||
| bc8dfc2e88 |
6
.SRCINFO
6
.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.0
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/Jguer/yay
|
url = https://github.com/Jguer/yay
|
||||||
arch = i686
|
arch = i686
|
||||||
@@ -18,7 +18,7 @@ pkgbase = yay
|
|||||||
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.0.tar.gz::https://github.com/Jguer/yay/archive/v12.5.0.tar.gz
|
||||||
sha256sums = f3f4af5d84f75abc3ea726f192568bdf570e2632b4b3c214effa4bba406ad293
|
sha256sums = 086bd410768611d40415181db18a8eda1f8cbad42dbe25190b0878424d442d47
|
||||||
|
|
||||||
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
|
||||||
47
.gitea/workflows/check-up-to-date.sh
Executable file
47
.gitea/workflows/check-up-to-date.sh
Executable file
@@ -0,0 +1,47 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Exit on any error
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Source the PKGBUILD in a subshell to avoid polluting the global environment
|
||||||
|
(
|
||||||
|
source ./PKGBUILD
|
||||||
|
|
||||||
|
# Convert pkgname to array in case it's a single string
|
||||||
|
pkgnames=("${pkgname[@]}")
|
||||||
|
|
||||||
|
for pkg in "${pkgnames[@]}"; do
|
||||||
|
echo "Checking package: $pkg"
|
||||||
|
|
||||||
|
if pacman -Si "$pkg" &>/dev/null; then
|
||||||
|
echo "Package '$pkg' exists in a repository."
|
||||||
|
|
||||||
|
# Get the package build date
|
||||||
|
pkg_build_date=$(date -d "$(pacman -Si "$pkg" | grep 'Build Date' | cut -d: -f2-)" +%s)
|
||||||
|
|
||||||
|
all_deps=("${depends[@]}" "${makedepends[@]}" "${optdepends[@]}")
|
||||||
|
|
||||||
|
# Check each dependency
|
||||||
|
for dep in "${all_deps[@]}"; do
|
||||||
|
dep_name=$(echo "$dep" | sed 's/[<>=].*//') # Remove version constraints
|
||||||
|
echo "Querying dependency: $dep_name"
|
||||||
|
|
||||||
|
if pacman -Si "$dep_name" &>/dev/null; then
|
||||||
|
dep_build_date=$(date -d "$(pacman -Si "$dep_name" | grep 'Build Date' | cut -d: -f2-)" +%s)
|
||||||
|
if (( dep_build_date >= pkg_build_date )); then
|
||||||
|
echo "Dependency '$dep_name' has newer or equal build date than '$pkg'."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Dependency '$dep_name' not found in repositories. Skipping."
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "All dependencies are older than package '$pkg'."
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "Package '$pkg' does NOT exist in any repository."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
)
|
||||||
39
.gitea/workflows/workflow.yml
Normal file
39
.gitea/workflows/workflow.yml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Workflows
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
wake:
|
||||||
|
name: Wake Runner
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Wakeup Runner
|
||||||
|
run: |
|
||||||
|
curl https://idlesleep.wolproxy.seeseepuff.be/status
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build and Push
|
||||||
|
runs-on: ubuntu-amd64
|
||||||
|
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 -Syu --noconfirm
|
||||||
|
|
||||||
|
- name: Build package
|
||||||
|
run: |
|
||||||
|
makepkg -s --noconfirm -
|
||||||
|
|
||||||
|
- name: Push to repository
|
||||||
|
run: |
|
||||||
|
makepkg --packagelist | while read -r file; do
|
||||||
|
curl --user ${{ secrets.USERNAME }}:${{ secrets.PASSWORD }} \
|
||||||
|
--upload-file $file \
|
||||||
|
https://gitea.seeseepuff.be/api/packages/archlinux/arch/personal
|
||||||
|
done
|
||||||
9
PKGBUILD
9
PKGBUILD
@@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Jguer <pkgbuilds at jguer.space>
|
# Maintainer: Jguer <pkgbuilds at jguer.space>
|
||||||
pkgname=yay
|
pkgname=yay
|
||||||
pkgver=12.4.2
|
pkgver=12.5.0
|
||||||
pkgrel=1
|
pkgrel=12
|
||||||
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')
|
||||||
url="https://github.com/Jguer/yay"
|
url="https://github.com/Jguer/yay"
|
||||||
@@ -15,9 +15,10 @@ optdepends=(
|
|||||||
'sudo: privilege elevation'
|
'sudo: privilege elevation'
|
||||||
'doas: privilege elevation'
|
'doas: privilege elevation'
|
||||||
)
|
)
|
||||||
makedepends=('go>=1.21')
|
makedepends=('go>=1.21'
|
||||||
|
'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=('086bd410768611d40415181db18a8eda1f8cbad42dbe25190b0878424d442d47')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
export GOPATH="$srcdir"/gopath
|
export GOPATH="$srcdir"/gopath
|
||||||
|
|||||||
Reference in New Issue
Block a user