Skip to content

Commit 57ecde4

Browse files
Initial commit
0 parents  commit 57ecde4

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
push:
3+
tags:
4+
- "aur/*"
5+
6+
jobs:
7+
sync:
8+
runs-on: ubuntu-latest
9+
container:
10+
image: ghcr.io/arjix-aur/runner-image-arch:latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: ccache
16+
uses: hendrikmuhs/ccache-action@v1.2
17+
18+
- name: build packages
19+
run: |
20+
cp build.sh /home/docker
21+
cd /home/docker
22+
runuser -u docker ./build.sh
23+
24+
- name: Release
25+
uses: softprops/action-gh-release@v2
26+
with:
27+
files: "/home/docker/*.pkg.tar.zst"
28+
fail_on_unmatched_files: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.vscode/
2+

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Template repository for building an AUR package and publishing the dist.
2+
Check `./build.sh`, don't forget to update the `PKG` variable!

build.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
IFS=$'\n\t'
5+
6+
sudo pacman-key --init
7+
sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
8+
sudo pacman-key --lsign-key 3056513887B78AEB
9+
10+
paru -Syu --noconfirm --ignore linux
11+
12+
PKG='$$TEMPLATE_PKG$$'
13+
14+
paru -G "$PKG"
15+
paru -B "$PKG" --noconfirm
16+
17+
cp "$PKG"/*.pkg.tar.zst .

0 commit comments

Comments
 (0)