From f85d009eec06b341766ae98e05b284a7e0c00287 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Wed, 6 Sep 2017 01:28:48 +0200 Subject: testing/git-secret: new aport http://git-secret.io/ A bash-tool to store your private data inside a git repository --- testing/git-secret/APKBUILD | 34 ++++++++++++++++++++++++++++++++++ testing/git-secret/makefile.patch | 15 +++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 testing/git-secret/APKBUILD create mode 100644 testing/git-secret/makefile.patch (limited to 'testing/git-secret') diff --git a/testing/git-secret/APKBUILD b/testing/git-secret/APKBUILD new file mode 100644 index 0000000000..cb86144007 --- /dev/null +++ b/testing/git-secret/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Jakub Jirutka +# Maintainer: Jakub Jirutka +pkgname=git-secret +pkgver=0.2.2 +pkgrel=0 +pkgdesc="A bash-tool to store your private data inside a git repository" +url="http://git-secret.io/" +arch="noarch" +license="MIT" +depends="bash gnupg" +checkdepends="bats" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/sobolevn/$pkgname/archive/v$pkgver.tar.gz + makefile.patch" +builddir="$srcdir/$pkgname-$pkgver" +options="!check" # does not work in a container w/o tty + +build() { + cd "$builddir" + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make PREFIX="$pkgdir/usr" install +} + +sha512sums="453b9012fd90e962ec47af598b43f1036b7e741d9f46053ff16a469c08c1da33f99c8e792119664c82dd63d24b8cf72736e445a454c7b7f59c0387e886ee5fde git-secret-0.2.2.tar.gz +5e91d0830e95a8be0eb1f87b482a1d9216ff86be354d52c5f0f5cf5b7c4bba6833f09097ea83349178314d63c373683f1782315b862eb4fc728dc17c91ba9bad makefile.patch" diff --git a/testing/git-secret/makefile.patch b/testing/git-secret/makefile.patch new file mode 100644 index 0000000000..a864c95841 --- /dev/null +++ b/testing/git-secret/makefile.patch @@ -0,0 +1,15 @@ +--- a/Makefile ++++ b/Makefile +@@ -39,10 +39,10 @@ + git clone https://github.com/sstephenson/bats.git vendor/bats; fi + + .PHONY: test +-test: install-test clean build ++test: build + @chmod +x "./utils/tests.sh"; sync; \ + export SECRET_PROJECT_ROOT="${PWD}"; \ +- export PATH="${PWD}/vendor/bats/bin:${PWD}:${PATH}"; \ ++ export PATH="${PWD}:${PATH}"; \ + "./utils/tests.sh" + + # -- cgit v1.2.3