Skip to content

Commit

Permalink
will publish to aur
Browse files Browse the repository at this point in the history
  • Loading branch information
b1f6c1c4 committed Jul 20, 2020
1 parent 7106273 commit 80b6c5f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,16 @@ In `git-gets`, `.git` is kept by default. You can override this with `--flat`.
(The upgrading process and install process are identical.)
- Linux
- Arch Linux
It's on [AUR](https://aur.archlinux.org/packages/git-get):
```bash
yay install git-get
rua install git-get
...
```
- Linux but not Arch Linux
We recommend that you download the latest release and untar the files:
```bash
Expand Down
10 changes: 4 additions & 6 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eux

find build/ -mindepth 1 -delete

mkdir -p build/bin/ build/share/man/man1/ build/share/licenses/git-get/
mkdir -p build/bin/ build/share/man/man1/ build/share/licenses/git-get/ build/arch/
VERSION="$(git describe --always --dirty | sed 's/-/_/g')"
DATE="$(date -Id)"

Expand All @@ -29,9 +29,8 @@ gpg --detach-sign build/git-get.tar.gz
gpg --detach-sign build/git-get.tar.xz
gpg --detach-sign build/git-get.zip

KEY="$(gpg --verify build/git-get.tar.xz.sig 2>&1 | grep -Po '(?<=using RSA key )[0-9A-F]{40}')"

cat - <<EOF >build/PKGBUILD
cat - <<EOF >build/arch/PKGBUILD
# Maintainer: b1f6c1c4 <b1f6c1c4@gmail.com>
pkgname=git-get
pkgver=$VERSION
pkgrel=1
Expand All @@ -40,8 +39,7 @@ arch=('any')
url="https://github.com/b1f6c1c4/git-get"
license=('MIT')
depends=('git' 'bash' 'grep' 'sed' 'awk')
# source=(\$url/releases/download/\$pkgver/\$pkgname.tar.xz{,.sig})
source=(file:///home/b1f6c1c4/git-get/build/\$pkgname.tar.xz)
source=("\$url/releases/download/\$pkgver/\$pkgname.tar.xz")
sha256sums=('$(sha256sum build/git-get.tar.xz | awk '{ print $1; }')')
build() {
Expand Down

0 comments on commit 80b6c5f

Please sign in to comment.