summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3400822063b69843b73b7e3faea641ad70657d32 (plain)
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
# Maintainer: kmille aur@androidloves.me

pkgname=git-dumper-git
_pkgname=git-dumper
pkgver=r70.2d6fa4f
pkgrel=1
pkgdesc="A tool to dump a git repository from a website"
arch=('any')
url="https://github.com/arthaud/git-dumper"
license=('MIT')
makedepends=(git python-setuptools)
depends=(python python-pysocks python-requests python-beautifulsoup4 python-dulwich python-requests-pkcs12)
source=(git+https://github.com/arthaud/git-dumper)
sha512sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  ( set -o pipefail
    git describe --long 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() {
  cd "$srcdir/$_pkgname"
  python -m pip install --root="$pkgdir" .
}