Skip to content

Commit 7789699

Browse files
committed
build(ci): Replace AUR action with one that updates the PKGBUILD version
See KSXGitHub/github-actions-deploy-aur#26 (comment)
1 parent 4719f7b commit 7789699

File tree

7 files changed

+71
-29
lines changed

7 files changed

+71
-29
lines changed

.github/workflows/aur.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,21 @@ on:
77
permissions:
88
contents: write
99

10+
concurrency:
11+
group: "aur"
12+
cancel-in-progress: true
13+
1014
jobs:
1115
aur:
1216
environment:
1317
name: aur-update
1418
runs-on: ubuntu-latest
19+
container:
20+
image: archlinux
21+
options: --privileged
1522
steps:
16-
- name: Checkout
17-
uses: actions/checkout@v2
18-
- name: AUR update (hyprpanel)
19-
uses: KSXGitHub/github-actions-deploy-aur@v2.7.0
20-
with:
21-
pkgname: hyprpanel
22-
pkgbuild: ./aur/hyprpanel/PKGBUILD
23-
updpkgsums: true
24-
test: true
25-
commit_username: ${{ secrets.AUR_USERNAME }}
26-
commit_email: ${{ secrets.AUR_EMAIL }}
27-
ssh_private_key: ${{ secrets.AUR_KEY }}
28-
- name: AUR update (hyprpanel-bin)
29-
uses: KSXGitHub/github-actions-deploy-aur@v2.7.0
23+
- name: AUR update
24+
uses: TheWisker/aur-update@v1
3025
with:
31-
pkgname: hyprpanel-bin
32-
pkgbuild: ./aur/hyprpanel-bin/PKGBUILD
33-
updpkgsums: true
34-
test: true
35-
commit_username: ${{ secrets.AUR_USERNAME }}
36-
commit_email: ${{ secrets.AUR_EMAIL }}
37-
ssh_private_key: ${{ secrets.AUR_KEY }}
26+
aur_key: ${{ secrets.AUR_KEY }}
27+
email: ${{ secrets.AUR_EMAIL }}

aur/hyprpanel-bin/.SRCINFO

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
pkgbase = hyprpanel-bin
2+
pkgdesc = An opinionated panel/shell for the Hyprland compositor.
3+
pkgver = 0.1.4
4+
pkgrel = 1
5+
url = https://github.com/pdf/hyprpanel
6+
arch = x86_64
7+
arch = aarch64
8+
license = MIT
9+
depends = gtk4
10+
depends = gtk4-layer-shell
11+
depends = hyprland
12+
optdepends = systemd: logging support
13+
optdepends = pulse-native-provider: volume control support
14+
optdepends = upower: battery status support
15+
provides = hyprpanel
16+
conflicts = hyprpanel
17+
options = !strip
18+
source_x86_64 = hyprpanel-bin-0.1.4-x86_64.tar.gz::https://github.com/pdf/hyprpanel/releases/download/v0.1.4/hyprpanel_Linux_x86_64.tar.gz
19+
sha256sums_x86_64 = fa02374b4a3a5423caa8896bc666f95d481cacc7a9e015ac10ee8b963e5f7f71
20+
source_aarch64 = hyprpanel-bin-0.1.4-aarch64.tar.gz::https://github.com/pdf/hyprpanel/releases/download/v0.1.4/hyprpanel_Linux_arm64.tar.gz
21+
sha256sums_aarch64 = cd20e17e4acb98599ac6eb933be35a9a51fde530caa780bfcc6b6247ee052c4e
22+
23+
pkgname = hyprpanel-bin

aur/hyprpanel-bin/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*
2+
!.gitignore
3+
!PKGBUILD
4+
!.SRCINFO

aur/hyprpanel-bin/PKGBUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
pkgname=hyprpanel-bin
44
_pkgname=${pkgname%-bin}
5-
pkgver=0.1.2
6-
pkgrel=3
5+
pkgver=0.1.4
6+
pkgrel=1
77
pkgdesc="An opinionated panel/shell for the Hyprland compositor."
88
arch=('x86_64' 'aarch64')
99
url="https://github.com/pdf/hyprpanel"
@@ -18,8 +18,8 @@ optdepends=('systemd: logging support'
1818
_src="${url}/releases/download/v${pkgver}/hyprpanel_Linux"
1919
source_x86_64=("${pkgname}-${pkgver}-x86_64.tar.gz::${_src}_x86_64.tar.gz")
2020
source_aarch64=("${pkgname}-${pkgver}-aarch64.tar.gz::${_src}_arm64.tar.gz")
21-
sha256sums_x86_64=('8276c75b11d21a973eeba9fdac113b302c2ec82f6347200ec7a11207a2cf661c')
22-
sha256sums_aarch64=('8276c75b11d21a973eeba9fdac113b302c2ec82f6347200ec7a11207a2cf661c')
21+
sha256sums_x86_64=('fa02374b4a3a5423caa8896bc666f95d481cacc7a9e015ac10ee8b963e5f7f71')
22+
sha256sums_aarch64=('cd20e17e4acb98599ac6eb933be35a9a51fde530caa780bfcc6b6247ee052c4e')
2323

2424
package() {
2525
install -Dm644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

aur/hyprpanel/.SRCINFO

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
pkgbase = hyprpanel
2+
pkgdesc = An opinionated panel/shell for the Hyprland compositor.
3+
pkgver = 0.1.4
4+
pkgrel = 1
5+
url = https://github.com/pdf/hyprpanel
6+
arch = x86_64
7+
arch = aarch64
8+
license = MIT
9+
makedepends = git
10+
makedepends = go
11+
depends = gtk4
12+
depends = gtk4-layer-shell
13+
depends = hyprland
14+
optdepends = systemd: logging support
15+
optdepends = pulse-native-provider: volume control support
16+
optdepends = upower: battery status support
17+
options = !strip
18+
source = https://github.com/pdf/hyprpanel/archive/v0.1.4/hyprpanel-0.1.4.tar.gz
19+
sha256sums = c2589aca93d45b016738d2b0124e3fbe9f6565c9d89c91c68dbe70a10ecb2ecc
20+
21+
pkgname = hyprpanel

aur/hyprpanel/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*
2+
!.gitignore
3+
!PKGBUILD
4+
!.SRCINFO

aur/hyprpanel/PKGBUILD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Maintainer: Peter Fern <aur at 0xc0dedbad dot com>
22

33
pkgname=hyprpanel
4-
pkgver=0.1.2
4+
pkgver=0.1.4
55
pkgrel=1
66
pkgdesc="An opinionated panel/shell for the Hyprland compositor."
77
arch=('x86_64' 'aarch64')
@@ -14,12 +14,13 @@ optdepends=('systemd: logging support'
1414
'upower: battery status support')
1515
makedepends=('git' 'go')
1616
source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
17+
sha256sums=('c2589aca93d45b016738d2b0124e3fbe9f6565c9d89c91c68dbe70a10ecb2ecc')
1718

1819
build() {
1920
export CGO_ENABLED=0
2021
cd "${pkgname}-${pkgver}"
21-
go build -o "${pkgname}" "./cmd/${pkgname}"
22-
go build -o "${pkgname}-client" "./cmd/${pkgname}-client"
22+
go build -v -o "${pkgname}" "./cmd/${pkgname}"
23+
go build -v -o "${pkgname}-client" "./cmd/${pkgname}-client"
2324
}
2425

2526
package() {
@@ -29,4 +30,3 @@ package() {
2930
}
3031

3132
# vim:set ts=2 sw=2 et:
32-
sha256sums=('43b88a20a25acd5d2a2fa8eab50d158ff849c977a4cfe548008db65324d86922')

0 commit comments

Comments
 (0)