summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2016-01-19 08:36:57 -0500
committerMario Finelli2016-01-19 08:36:57 -0500
commit44270cd46ba099b67fbbe46ea2b61c8def4d6315 (patch)
treea45f3c707544a643c19a661e07c8529d8033e7e4
downloadaur-44270cd46ba099b67fbbe46ea2b61c8def4d6315.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD31
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..413976feb0d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Tue Jan 19 13:36:01 UTC 2016
+pkgbase = backblaze-b2-git
+ pkgdesc = Backblaze B2 Command Line Client.
+ pkgver = r139.24408e8
+ pkgrel = 1
+ url = https://www.backblaze.com/b2/cloud-storage.html
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = python2
+ provides = backblaze-b2
+ conflicts = backblaze-b2
+ source = git://github.com/Backblaze/B2_Command_Line_Tool.git
+ md5sums = SKIP
+
+pkgname = backblaze-b2-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..f71c635dafd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!PKGBUILD
+!.SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..511e363d574
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Mario Finelli <mario at finel dot li>
+
+pkgname=backblaze-b2-git
+pkgver=r139.24408e8
+pkgrel=1
+pkgdesc="Backblaze B2 Command Line Client."
+arch=('any')
+url="https://www.backblaze.com/b2/cloud-storage.html"
+license=('MIT')
+depends=('python2')
+makedepends=('git')
+provides=('backblaze-b2')
+conflicts=('backblaze-b2')
+source=('git://github.com/Backblaze/B2_Command_Line_Tool.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/B2_Command_Line_Tool"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/B2_Command_Line_Tool"
+ sed -i 's:^#!/usr/bin/env python$:#!/usr/bin/env python2:' b2
+}
+
+package() {
+ cd "$srcdir/B2_Command_Line_Tool"
+ install -Dm0755 b2 "$pkgdir/usr/bin/b2"
+ install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/backblaze-b2/LICENSE"
+}