mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-23 06:22:16 +01:00
37 lines
992 B
Plaintext
37 lines
992 B
Plaintext
maintainer="mekyt <hello@mek.yt>"
|
|
pkgname=lefthook
|
|
pkgver=1.11.3
|
|
pkgrel=0
|
|
pkgdesc="Fast and powerful Git hooks manager"
|
|
url="https://github.com/evilmartians/lefthook"
|
|
license="MIT"
|
|
arch="all"
|
|
subpackages="$pkgname-doc"
|
|
makedepends="go"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/evilmartians/lefthook/archive/v$pkgver.tar.gz
|
|
"
|
|
options="net" # download Go modules
|
|
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -ldflags "-s -w -X main.version=$pkgver"
|
|
}
|
|
|
|
check() {
|
|
# Auto-update only avaiable for x86_64 and aarch64 arch
|
|
go test ./... -skip TestUpdater_SelfUpdate
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
install -Dm755 lefthook -t "$pkgdir"/usr/bin/
|
|
}
|
|
|
|
sha512sums="
|
|
82eb5bb6372f0d6707f1623e47f8845b7d08e6c915c94792b069b7e6b4c0bc7f584fbe35b464542e47f808ce1b8a0d961d47091221b4162bbaddce31391b84ee lefthook-1.11.3.tar.gz
|
|
"
|