Skip to content

Commit 7838d6c

Browse files
committed
aur
1 parent b94f793 commit 7838d6c

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

.github/workflows/aur.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish to AUR
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "aur/PKGBUILD"
8+
- "aur/.SRCINFO"
9+
10+
jobs:
11+
aur:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up SSH key for AUR
19+
run: |
20+
mkdir -p ~/.ssh
21+
echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
22+
chmod 600 ~/.ssh/id_ed25519
23+
cat >> ~/.ssh/config <<EOF
24+
Host aur.archlinux.org
25+
User aur
26+
IdentityFile ~/.ssh/id_ed25519
27+
IdentitiesOnly yes
28+
StrictHostKeyChecking no
29+
UserKnownHostsFile=/dev/null
30+
EOF
31+
32+
- name: Push to AUR
33+
run: |
34+
git config --global user.name "github-actions[bot]"
35+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
36+
37+
git clone --depth=1 ssh://aur@aur.archlinux.org/pulsarship.git aur-repo
38+
cp aur/PKGBUILD aur/.SRCINFO aur-repo/
39+
cd aur-repo
40+
git add PKGBUILD .SRCINFO
41+
git commit -m "Update from GitHub Actions" || true
42+
git push

aur/PKGBUILD

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Maintainer: kamisaki
2+
# Description: 🚀🌠 A minimal, fast, and customizable prompt written in Go
3+
pkgname=pulsarship
4+
pkgver=0.1.0
5+
pkgrel=1
6+
pkgdesc="🚀🌠 A minimal, fast, and customizable prompt written in Go"
7+
arch=('x86_64')
8+
url="https://github.com/xeyossr/pulsarship"
9+
license=('GPL3')
10+
depends=()
11+
makedepends=('go')
12+
13+
optdepends=()
14+
15+
provides=("${pkgname}")
16+
conflicts=("${pkgname}")
17+
source=(
18+
"git+https://github.com/xeyossr/pulsarship.git#tag=v${pkgver}"
19+
)
20+
sha256sums=('SKIP')
21+
22+
build() {
23+
cd "$srcdir/${pkgname}"
24+
go mod tidy
25+
go build -o pulsarship
26+
}
27+
28+
package() {
29+
cd "$srcdir/${pkgname}"
30+
install -Dm755 "${srcdir}/${pkgname}/pulsarship" "${pkgdir}/usr/bin/${pkgname}"
31+
}

0 commit comments

Comments
 (0)