diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 31 |
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..413976feb0d7 --- /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 000000000000..f71c635dafda --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!PKGBUILD +!.SRCINFO diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..511e363d574f --- /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" +} |