diff --git a/testing/git-bug/APKBUILD b/testing/git-bug/APKBUILD new file mode 100644 index 00000000000..024256de6dd --- /dev/null +++ b/testing/git-bug/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Thomas Kienlen +# Maintainer: Thomas Kienlen +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 +" diff --git a/testing/git-bug/Makefile.patch b/testing/git-bug/Makefile.patch new file mode 100644 index 00000000000..131d1db3973 --- /dev/null +++ b/testing/git-bug/Makefile.patch @@ -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)