diff options
author | Alexander Schmidt | 2017-11-07 23:59:46 +0100 |
---|---|---|
committer | Alexander Schmidt | 2017-11-07 23:59:46 +0100 |
commit | 7e39880fc6a460ee6e605efc3b32a04be7b56688 (patch) | |
tree | 193a189dfb8914b5320bc59725e431dca82f9dd0 | |
download | aur-7e39880fc6a460ee6e605efc3b32a04be7b56688.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 36 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..055f51e85b3d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = bitvalue-git + pkgdesc = Simple bash script to visualize the value of your bitcoin investment. + pkgver = r1.a9f0a83 + pkgrel = 1 + url = http://git.treefish.org/~alex/bitvalue.git + arch = any + license = GPL3 + depends = gnuplot>=5.2 + depends = wget>=1.19 + source = bitvalue-git::git+https://git.treefish.org/~alex/bitvalue.git + md5sums = SKIP + +pkgname = bitvalue-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..14bc5dee7e1d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +pkgname=bitvalue-git +pkgver=r1.a9f0a83 +pkgrel=1 +pkgdesc="Simple bash script to visualize the value of your bitcoin investment." +arch=('any') +url="http://git.treefish.org/~alex/bitvalue.git" +license=('GPL3') +source=('bitvalue-git::git+https://git.treefish.org/~alex/bitvalue.git') +md5sums=('SKIP') +depends=('gnuplot>=5.2' 'wget>=1.19') + +pkgver() { + cd "$srcdir/$pkgname" + ( set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + install -Dm755 -t ${pkgdir}/usr/bin $srcdir/$pkgname/bitvalue +} |