Skip to content

Commit

Permalink
build(ci): Replace AUR action with one that updates the PKGBUILD version
Browse files Browse the repository at this point in the history
  • Loading branch information
pdf committed Mar 10, 2024
1 parent 4719f7b commit 7789699
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 29 deletions.
32 changes: 11 additions & 21 deletions .github/workflows/aur.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,21 @@ on:
permissions:
contents: write

concurrency:
group: "aur"
cancel-in-progress: true

jobs:
aur:
environment:
name: aur-update
runs-on: ubuntu-latest
container:
image: archlinux
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@v2
- name: AUR update (hyprpanel)
uses: KSXGitHub/[email protected]
with:
pkgname: hyprpanel
pkgbuild: ./aur/hyprpanel/PKGBUILD
updpkgsums: true
test: true
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_KEY }}
- name: AUR update (hyprpanel-bin)
uses: KSXGitHub/[email protected]
- name: AUR update
uses: TheWisker/aur-update@v1
with:
pkgname: hyprpanel-bin
pkgbuild: ./aur/hyprpanel-bin/PKGBUILD
updpkgsums: true
test: true
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_KEY }}
aur_key: ${{ secrets.AUR_KEY }}
email: ${{ secrets.AUR_EMAIL }}
23 changes: 23 additions & 0 deletions aur/hyprpanel-bin/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
pkgbase = hyprpanel-bin
pkgdesc = An opinionated panel/shell for the Hyprland compositor.
pkgver = 0.1.4
pkgrel = 1
url = https://github.com/pdf/hyprpanel
arch = x86_64
arch = aarch64
license = MIT
depends = gtk4
depends = gtk4-layer-shell
depends = hyprland
optdepends = systemd: logging support
optdepends = pulse-native-provider: volume control support
optdepends = upower: battery status support
provides = hyprpanel
conflicts = hyprpanel
options = !strip
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
sha256sums_x86_64 = fa02374b4a3a5423caa8896bc666f95d481cacc7a9e015ac10ee8b963e5f7f71
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
sha256sums_aarch64 = cd20e17e4acb98599ac6eb933be35a9a51fde530caa780bfcc6b6247ee052c4e

pkgname = hyprpanel-bin
4 changes: 4 additions & 0 deletions aur/hyprpanel-bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO
8 changes: 4 additions & 4 deletions aur/hyprpanel-bin/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

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

package() {
install -Dm644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
Expand Down
21 changes: 21 additions & 0 deletions aur/hyprpanel/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pkgbase = hyprpanel
pkgdesc = An opinionated panel/shell for the Hyprland compositor.
pkgver = 0.1.4
pkgrel = 1
url = https://github.com/pdf/hyprpanel
arch = x86_64
arch = aarch64
license = MIT
makedepends = git
makedepends = go
depends = gtk4
depends = gtk4-layer-shell
depends = hyprland
optdepends = systemd: logging support
optdepends = pulse-native-provider: volume control support
optdepends = upower: battery status support
options = !strip
source = https://github.com/pdf/hyprpanel/archive/v0.1.4/hyprpanel-0.1.4.tar.gz
sha256sums = c2589aca93d45b016738d2b0124e3fbe9f6565c9d89c91c68dbe70a10ecb2ecc

pkgname = hyprpanel
4 changes: 4 additions & 0 deletions aur/hyprpanel/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO
8 changes: 4 additions & 4 deletions aur/hyprpanel/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Peter Fern <aur at 0xc0dedbad dot com>

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

build() {
export CGO_ENABLED=0
cd "${pkgname}-${pkgver}"
go build -o "${pkgname}" "./cmd/${pkgname}"
go build -o "${pkgname}-client" "./cmd/${pkgname}-client"
go build -v -o "${pkgname}" "./cmd/${pkgname}"
go build -v -o "${pkgname}-client" "./cmd/${pkgname}-client"
}

package() {
Expand All @@ -29,4 +30,3 @@ package() {
}

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

0 comments on commit 7789699

Please sign in to comment.