summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 15 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6f84368db17..5e044f898b8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,9 @@
# Maintainer: Mario Finelli <mario at finel dot li>
-pkgname=backblaze-b2-git
+_pkgname=backblaze-b2
+_reponame="B2_Command_Line_Tool"
+
+pkgname="${_pkgname}-git"
pkgver=r257.a132718
pkgrel=1
pkgdesc="Backblaze B2 Command Line Client."
@@ -10,25 +13,27 @@ license=('MIT')
depends=('python2')
makedepends=('git')
optdepends=('python-tqdm: upload/download progress bar')
-provides=('backblaze-b2')
-conflicts=('backblaze-b2')
-source=('git://github.com/Backblaze/B2_Command_Line_Tool.git')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("git://github.com/Backblaze/$_reponame.git")
md5sums=('SKIP')
pkgver() {
- cd "$srcdir/B2_Command_Line_Tool"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "$srcdir/$_reponame"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" \
+ "$(git rev-parse --short HEAD)"
}
build() {
- cd "$srcdir/B2_Command_Line_Tool"
+ cd "$srcdir/$_reponame"
python2 setup.py build
}
package() {
- cd "$srcdir/B2_Command_Line_Tool"
+ cd "$srcdir/$_reponame"
python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm0644 contrib/bash_completion/b2 "$pkgdir/etc/bash_completion.d/b2"
- install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/backblaze-b2/LICENSE"
+ install -Dm0644 contrib/bash_completion/b2 \
+ "$pkgdir/etc/bash_completion.d/b2"
+ install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}