mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
testing/git-bug: new aport
This commit is contained in:
parent
aa7b47a8d0
commit
dd5f076e27
2 changed files with 51 additions and 0 deletions
37
testing/git-bug/APKBUILD
Normal file
37
testing/git-bug/APKBUILD
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Contributor: Thomas Kienlen <kommander@laposte.net>
|
||||
# Maintainer: Thomas Kienlen <kommander@laposte.net>
|
||||
pkgname=git-bug
|
||||
pkgver=0.7.2
|
||||
pkgrel=0
|
||||
pkgdesc="Distributed, offline-first bug tracker embedded in git, with bridges"
|
||||
url="https://github.com/MichaelMure/git-bug"
|
||||
arch="all"
|
||||
license="GPL-3.0-or-later"
|
||||
makedepends="go"
|
||||
source="
|
||||
git-bug-$pkgver.tar.gz::https://github.com/MichaelMure/git-bug/archive/v$pkgver.tar.gz
|
||||
Makefile.patch
|
||||
"
|
||||
|
||||
export GIT_COMMIT=v$pkgver
|
||||
export GIT_LAST_TAG=v$pkgver
|
||||
export GIT_EXACT_TAG=v$pkgver
|
||||
|
||||
export GOFLAGS="$GOFLAGS -modcacherw"
|
||||
|
||||
build() {
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
make test
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 git-bug "$pkgdir"/usr/bin/git-bug
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
85dac95e09dc0946afafc8bcec303b1bcaac36081bb8c8057e767c57a488496c2e6971b7fcf257903a6021da54f946a7475a72e999e142645f29f7e228570ab2 git-bug-0.7.2.tar.gz
|
||||
fed7c606b146976cf2c3fc4c2849ae81e8f1dd17505863dcf5dcbafd4715a96d3a1984124e27c70b6a6aaf09f22a5b957fdfde7725132c8b775bdf5a6bce0a24 Makefile.patch
|
||||
"
|
14
testing/git-bug/Makefile.patch
Normal file
14
testing/git-bug/Makefile.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,8 +1,8 @@
|
||||
all: build
|
||||
|
||||
-GIT_COMMIT:=$(shell git rev-list -1 HEAD)
|
||||
-GIT_LAST_TAG:=$(shell git describe --abbrev=0 --tags)
|
||||
-GIT_EXACT_TAG:=$(shell git name-rev --name-only --tags HEAD)
|
||||
+GIT_COMMIT?=$(shell git rev-list -1 HEAD)
|
||||
+GIT_LAST_TAG?=$(shell git describe --abbrev=0 --tags)
|
||||
+GIT_EXACT_TAG?=$(shell git name-rev --name-only --tags HEAD)
|
||||
UNAME_S := $(shell uname -s)
|
||||
XARGS:=xargs -r
|
||||
ifeq ($(UNAME_S),Darwin)
|
Loading…
Add table
Add a link
Reference in a new issue