summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ff28038befb05d566724c61c4e6583b09884cd8 (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
# Maintainer: Guillaume Brogi <gui-gui at netcourrier dot com>
pkgname=git-repo-git
pkgver=1.10.2.r1.g1181207
pkgrel=1
pkgdesc="Tool for managing remote repositories from your git CLI!"
arch=('any')
url="https://github.com/guyzmo/git-repo"
license=('GPL2')
depends=('python' 'python-docopt' 'python-progress' 'python-dateutil' 'python-lxml' 'python-gitpython' 'python-github3' 'python-gitlab>=0.18' 'python-gogs-client' 'python-pybitbucket_fork-git')
makedepends=('python-setuptools' 'python-pip')
source=("${pkgname}::git+${url}")
sha256sums=(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 setup.py install --root="${pkgdir}" --optimize=1
}