Skip to content

Commit 5df78fd

Browse files
authored
Added PKGBUILD file and AUR helpers installation guide (#7)
* Added PKGBUILD for Arch-based distro installation * Documented AUR helper installation in readme * Updated PKGBUILD * Changed AUR package name from glimpse-rust-git to glimpse
1 parent 4208ee8 commit 5df78fd

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

PKGBUILD

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# AUR Package Maintainer: Alan <github dot com slash alan-ar1>
2+
# Upstream Author / Project Maintainer: seatedro <me at seated dot ro>
3+
4+
pkgname="glimpse"
5+
pkgver=r40.4208ee8
6+
pkgrel=1
7+
pkgdesc="A blazingly fast tool for peeking at codebases."
8+
arch=('x86_64' 'aarch64' 'i686')
9+
url="https://github.com/seatedro/$pkgname"
10+
license=('MIT')
11+
makedepends=('git' 'cargo')
12+
conflicts=("$pkgname")
13+
options=('!lto')
14+
source=("git+$url")
15+
sha256sums=('SKIP')
16+
17+
pkgver() {
18+
cd "$srcdir/$pkgname"
19+
( set -o pipefail
20+
git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
21+
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
22+
)
23+
}
24+
25+
build() {
26+
cd "$srcdir/$pkgname"
27+
cargo build --all-features --release
28+
}
29+
30+
package() {
31+
cd "$srcdir/$pkgname"
32+
install -Dm755 "target/release/$pkgname" -t "$pkgdir/usr/bin/"
33+
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
34+
}

readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ nix profile install github:seatedro/glimpse
3737
}
3838
```
3939

40+
Using an AUR helper:
41+
```bash
42+
# Using yay
43+
yay -S glimpse
44+
45+
# Using paru
46+
paru -S glimpse
47+
```
48+
4049
## Usage
4150

4251
Basic usage:

0 commit comments

Comments
 (0)