Skip to content

Commit 9a96be4

Browse files
committed
docs: Ignore building AUR package for now
1 parent 5f85cae commit 9a96be4

File tree

2 files changed

+50
-55
lines changed

2 files changed

+50
-55
lines changed

.github/workflows/release.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -67,57 +67,57 @@ jobs:
6767
# git commit -m "ticket ${VERSION}"
6868
# git push
6969

70-
- name: Update AUR package
71-
env:
72-
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
73-
run: |
74-
VERSION=${{ steps.sha.outputs.version }}
75-
SHA=${{ steps.sha.outputs.sha256 }}
76-
PKGVER=${VERSION#v}
77-
78-
mkdir -p ~/.ssh
79-
echo "$AUR_SSH_KEY" > ~/.ssh/aur
80-
chmod 600 ~/.ssh/aur
81-
echo "Host aur.archlinux.org" >> ~/.ssh/config
82-
echo " IdentityFile ~/.ssh/aur" >> ~/.ssh/config
83-
echo " User aur" >> ~/.ssh/config
84-
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
85-
86-
git clone ssh://aur@aur.archlinux.org/ticket.git aur
87-
cd aur
88-
89-
cat > PKGBUILD << 'EOF'
90-
# Maintainer: MojoTech <mojotech@users.noreply.github.com>
91-
pkgname=mojotech-ticket
92-
pkgver=PKGVER_PLACEHOLDER
93-
pkgrel=1
94-
pkgdesc="Minimal ticket tracking in bash"
95-
arch=('any')
96-
url="https://github.com/mojotech/ticket"
97-
license=('MIT')
98-
depends=('bash' 'coreutils' 'findutils' 'gawk')
99-
optdepends=('ripgrep: faster searching' 'jq: query command')
100-
source=("$pkgname-$pkgver.tar.gz::https://github.com/mojotech/ticket/archive/refs/tags/v$pkgver.tar.gz")
101-
sha256sums=('SHA_PLACEHOLDER')
102-
103-
package() {
104-
cd "$pkgname-$pkgver"
105-
install -Dm755 ticket "$pkgdir/usr/bin/tk"
106-
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
107-
}
108-
EOF
109-
110-
sed -i "s|PKGVER_PLACEHOLDER|${PKGVER}|" PKGBUILD
111-
sed -i "s|SHA_PLACEHOLDER|${SHA}|" PKGBUILD
112-
sed -i 's|^ ||' PKGBUILD
113-
114-
docker run --rm -v "$PWD:/pkg" archlinux:latest bash -c "pacman -Sy --noconfirm pacman-contrib sudo && useradd -u 1001 builder && chown -R builder /pkg && cd /pkg && sudo -u builder makepkg --printsrcinfo > .SRCINFO && chown -R 1001:1001 /pkg"
70+
# - name: Update AUR package
71+
# env:
72+
# AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
73+
# run: |
74+
# VERSION=${{ steps.sha.outputs.version }}
75+
# SHA=${{ steps.sha.outputs.sha256 }}
76+
# PKGVER=${VERSION#v}
77+
78+
# mkdir -p ~/.ssh
79+
# echo "$AUR_SSH_KEY" > ~/.ssh/aur
80+
# chmod 600 ~/.ssh/aur
81+
# echo "Host aur.archlinux.org" >> ~/.ssh/config
82+
# echo " IdentityFile ~/.ssh/aur" >> ~/.ssh/config
83+
# echo " User aur" >> ~/.ssh/config
84+
# ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
85+
86+
# git clone ssh://aur@aur.archlinux.org/ticket.git aur
87+
# cd aur
88+
89+
# cat > PKGBUILD << 'EOF'
90+
# # Maintainer: MojoTech <mojotech@users.noreply.github.com>
91+
# pkgname=mojotech-ticket
92+
# pkgver=PKGVER_PLACEHOLDER
93+
# pkgrel=1
94+
# pkgdesc="Minimal ticket tracking in bash"
95+
# arch=('any')
96+
# url="https://github.com/mojotech/ticket"
97+
# license=('MIT')
98+
# depends=('bash' 'coreutils' 'findutils' 'gawk')
99+
# optdepends=('ripgrep: faster searching' 'jq: query command')
100+
# source=("$pkgname-$pkgver.tar.gz::https://github.com/mojotech/ticket/archive/refs/tags/v$pkgver.tar.gz")
101+
# sha256sums=('SHA_PLACEHOLDER')
102+
103+
# package() {
104+
# cd "$pkgname-$pkgver"
105+
# install -Dm755 ticket "$pkgdir/usr/bin/tk"
106+
# install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
107+
# }
108+
# EOF
109+
110+
# sed -i "s|PKGVER_PLACEHOLDER|${PKGVER}|" PKGBUILD
111+
# sed -i "s|SHA_PLACEHOLDER|${SHA}|" PKGBUILD
112+
# sed -i 's|^ ||' PKGBUILD
113+
114+
# docker run --rm -v "$PWD:/pkg" archlinux:latest bash -c "pacman -Sy --noconfirm pacman-contrib sudo && useradd -u 1001 builder && chown -R builder /pkg && cd /pkg && sudo -u builder makepkg --printsrcinfo > .SRCINFO && chown -R 1001:1001 /pkg"
115115

116-
git config user.name "github-actions[bot]"
117-
git config user.email "github-actions[bot]@users.noreply.github.com"
118-
git add PKGBUILD .SRCINFO
119-
git commit -m "Update to ${VERSION}"
120-
git push
116+
# git config user.name "github-actions[bot]"
117+
# git config user.email "github-actions[bot]@users.noreply.github.com"
118+
# git add PKGBUILD .SRCINFO
119+
# git commit -m "Update to ${VERSION}"
120+
# git push
121121

122122
- name: Update Nix derivation
123123
run: |

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ MojoTech fork of `ticket` project from original repo: [https://github.com/wedow/
2020

2121
## Install
2222

23-
**Arch Linux (AUR):**
24-
```bash
25-
yay -S mojotech-ticket # or paru, etc.
26-
```
27-
2823
**Nix (flakes):**
2924
```bash
3025
# Run directly

0 commit comments

Comments
 (0)