blob: 09134da3a2a4e1f6ef7579ab0d510c41c3f5eb48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Maintainer: Fernando Nunez <me@fernandonunez.io>
pkgname=yaylog
pkgver=2.0.2
pkgrel=1
pkgdesc="A CLI util to list recently installed packages with filtering, written in Go."
arch=("any")
url="https://github.com/Zweih/yaylog"
license=("MIT")
depends=("expac")
source=("$pkgname-$pkgver.tar.gz::https://github.com/zweih/yaylog/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=("60ae38107929cd4e9e48b69233ea8bc8f1ca0d9ae3642f14ee84ce27a2b9716f")
build() {
cd "$srcdir/$pkgname-$pkgver"
export CGO_ENABLED=0
go build -trimpath -o "$pkgname" ./cmd/$pkgname
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
}
|