Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 42 lines (35 sloc) 1.534 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# Maintainer: Sairon Istyar <saironiq@gmail.com>
# Contributor: Thomas Jost <schnouki@schnouki.net>

pkgname=git-annex-bin
pkgver=auto
pkgrel=1
pkgdesc='Precompiled version of git-annex, webapp and assistant included.'
arch=('i686' 'x86_64')
url="http://git-annex.branchable.com/"
license=(GPL3)
provides=(git-annex)
conflicts=(git-annex git-annex-standalone)
makedepends=(curl sed)

if [ "$CARCH" = "i686" ] ; then
  depends=(git util-linux openssh rsync curl glibc gnupg wget findutils libyaml \
           libffi5 zlib libxml2 gmp xz lsof coreutils gsasl gnutls p11-kit libtasn1-3 nettle \
           libidn libntlm libgnutls26 krb5 libgcrypt icu48 dnsutils)
  _arch=i386
elif [ "$CARCH" = "x86_64" ] ; then
  depends=(git util-linux openssh rsync curl glibc gnupg wget findutils libyaml \
           libffi5 zlib libxml2 gmp xz lsof coreutils gsasl gnutls p11-kit libtasn1-3 nettle \
           libidn libntlm libgnutls26 krb5 libgcrypt icu48 dnsutils)
  _arch=amd64
fi

_url=https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-${_arch}.tar.gz
_info=$(curl ${_url}.info)

pkgver() {
  echo "${_info}" | sed 's/.*distributionVersion = "\([0-9.]*\)".*/\1/'
}

sha256sums=($(echo "${_info}" | sed 's/.*keyName = "\(.*\).tar.gz".*/\1/'))

_file=git-annex-standalone-${_arch}-$(pkgver).tar.gz
source=(${_file}::${_url})

package() {
  install -Dm755 "$srcdir/git-annex.linux/shimmed/git-annex/git-annex" "$pkgdir/usr/bin/git-annex"
  ln -s "$srcdir/git-annex.linux/git-annex" "$pkgdir/usr/bin/git-annex-shell"
}
Something went wrong with that request. Please try again.