blob: 849f52407f7a9e4646a47ec88aabaaf3cdbd00e2 (
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
|
# Maintainer: Lefthook <lefthook@evilmartians.com>
pkgname=lefthook
pkgdesc="Git hooks manager"
pkgver=2.1.9
pkgrel=1
arch=('x86_64' 'aarch64')
url="https://github.com/evilmartians/lefthook"
license=('MIT')
makedepends=('go>=1.26')
source=("https://github.com/evilmartians/lefthook/archive/v${pkgver}.tar.gz")
sha256sums=('33dece7ea494fa723cd1a8488210dab807c1be9d3c92912a0eedbd6406299744')
build() {
cd "$pkgname-$pkgver"
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
.
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
}
|