summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 400661595c53161cfa0bcec7d185754be64366ca (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
28
29
30
31
32
# Maintainer: coldbug <coldBug@e.mail.de>
_pkgbase=faraday_plugins
pkgname=python-faraday-plugins-git
pkgver=v1.2.3.r0.gf46ca79
pkgrel=1
pkgdesc="Faraday Plugins"
arch=('any')
url="https://github.com/infobyte/faraday_plugins"
license=("GPL2")
depends=('python' 'python-beautifulsoup4' 'python-html2text' 'python-tqdm' 'python-simplejson' 'python-deprecation' 'python-click' 'python-requests' 'python-lxml' 'python-pytz' 'python-dateutil' 'python-colorama')
makedepends=('git' 'python-setuptools')
source=("git+https://github.com/infobyte/faraday_plugins.git")
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgbase}"
	( 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)"
	)
}

build() {
	cd "${srcdir}/${_pkgbase}"
    python setup.py build
}

package() {
	cd "${srcdir}/${_pkgbase}"
    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}