blob: f9d8fb38af46b54767a9db23d313356552cf1c23 (
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
26
27
28
29
30
31
|
# Maintainer: Stanislav Kovalenko <https://github.com/kovstas>
# Upstream author: Umputun <https://github.com/umputun>
pkgname=revdiff
pkgver=1.3.0
pkgrel=1
pkgdesc="TUI for reviewing diffs, files, and documents with inline annotations"
arch=('x86_64' 'aarch64')
url="https://github.com/umputun/revdiff"
license=('MIT')
depends=('glibc')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/umputun/revdiff/archive/v$pkgver.tar.gz")
sha256sums=('f365112b1aa2dc68b69989c25015e2a83e36cd133401d888a9d98d741aac2ae4')
build() {
cd "$pkgname-$pkgver"
export CGO_ENABLED=0
export GOFLAGS="-mod=vendor -trimpath -modcacherw"
local _revision="v${pkgver}-aur"
go build \
-ldflags "-s -w -X main.revision=${_revision}" \
-o revdiff ./app
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 revdiff "$pkgdir/usr/bin/revdiff"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|