mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 20:06:43 +02:00
testing/ghq: upgrade to 1.5.0
This commit is contained in:
parent
96a591e057
commit
d7bc0864cc
@ -1,13 +1,17 @@
|
||||
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
||||
pkgname=ghq
|
||||
pkgver=1.4.2
|
||||
pkgrel=2
|
||||
pkgver=1.5.0
|
||||
pkgrel=0
|
||||
pkgdesc="CLI to manage remote repository clones"
|
||||
url="https://github.com/x-motemen/ghq"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
makedepends="go"
|
||||
subpackages="$pkgname-bash-completion $pkgname-zsh-completion"
|
||||
makedepends="asciidoctor go"
|
||||
subpackages="
|
||||
$pkgname-doc
|
||||
$pkgname-bash-completion
|
||||
$pkgname-zsh-completion
|
||||
"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/x-motemen/ghq/archive/refs/tags/v$pkgver.tar.gz"
|
||||
|
||||
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
||||
@ -16,6 +20,9 @@ export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
||||
|
||||
build() {
|
||||
go build -v -ldflags "-X main.revision=AlpineLinux"
|
||||
|
||||
sed -i '1 s/^.*$/= ghq(1)/' README.adoc
|
||||
asciidoctor -b manpage README.adoc
|
||||
}
|
||||
|
||||
check() {
|
||||
@ -25,6 +32,9 @@ check() {
|
||||
package() {
|
||||
install -Dm755 ghq -t "$pkgdir"/usr/bin/
|
||||
|
||||
install -Dvm644 ghq.1 -t "$pkgdir"/usr/share/man/man1/
|
||||
install -Dvm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
|
||||
|
||||
install -Dm644 misc/bash/_ghq \
|
||||
"$pkgdir"/usr/share/bash-completion/completions/ghq
|
||||
install -Dm644 misc/zsh/_ghq \
|
||||
@ -32,5 +42,5 @@ package() {
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
7f409511734e3633f6cfbc5f9833ff9e749a07279dff80eb3ea24c4d6e5665d4ffc0637867cc57f9ff23693512a078b2c7ea571ad26e379a5e9ff44e6e515f9a ghq-1.4.2.tar.gz
|
||||
b626b86bbad033252902c2f6978d767e33d51e5f5643c39daea930b65b253824ff9b777688d36bc178117bcbe40de6d2d9f3322f38ed1d195d2eacf5e15ec625 ghq-1.5.0.tar.gz
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user