blob: d54e42a8a109a09d3d060a3c2b24760577cda29b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Maintainer: Fernando Nunez <me@fernandonunez.io>
pkgname=yaylog
pkgver=3.22.3
pkgrel=1
pkgdesc="A CLI utility to list installed packages with filtering and sorting, written in Go."
arch=("any")
url="https://github.com/Zweih/yaylog"
license=("MIT")
makedepends=("go")
provides=("yaylog")
conflicts=("yaylog-bin" "yaylog-git")
source=("${url}/releases/download/v${pkgver}/yaylog-v${pkgver}.tar.gz")
sha256sums=('0c9b348387935f1dae3e99e2345713283d417a4160915ad25dcd499d9efd7732')
build() {
cd "$srcdir/$pkgname-v$pkgver"
export CGO_ENABLED=0
go build -trimpath -o "$pkgname" ./cmd/$pkgname
}
package() {
cd "$srcdir/$pkgname-v$pkgver"
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
}
|