File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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
4251Basic usage:
You can’t perform that action at this time.
0 commit comments