diff options
author | DanManN | 2018-12-06 02:04:23 -0500 |
---|---|---|
committer | DanManN | 2018-12-06 02:04:23 -0500 |
commit | 1d6dae076db6e0073f589158970a5b4a5bab55cd (patch) | |
tree | 8111e344ecbfa0d7a90f1aff3ce6a09096d53fcc | |
download | aur-1d6dae076db6e0073f589158970a5b4a5bab55cd.tar.gz |
description
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6352affae57f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-vcrpy-git + pkgdesc = VCR.py simplifies and speeds up tests that make HTTP requests. + pkgver = 2.7.r835.0cf11d4 + pkgrel = 1 + url = https://github.com/kevin1024/vcrpy + arch = any + depends = python + provides = python-vcrpy + conflicts = python-vcrpy + source = git+https://github.com/kevin1024/vcrpy.git + md5sums = SKIP + +pkgname = python-vcrpy-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2ee7f3492085 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: DanManN <dnahimov@gmail.com> +# Python package author: Kevin McCarthy <me@kevinmccarthy.org> + +_pkgname=vcrpy +_author=kevin1024 +pkgname=python-$_pkgname-git +pkgver=2.7.r835.0cf11d4 +pkgrel=1 +pkgdesc="VCR.py simplifies and speeds up tests that make HTTP requests." +arch=('any') +url="https://github.com/$_author/$_pkgname" +license=('') +depends=('python') +makedepends=('') +provides=("python-$_pkgname") +conflicts=("python-$_pkgname") +source=("git+https://github.com/$_author/$_pkgname.git") +md5sums=('SKIP') + +prepare() { + cd "$_pkgname" + git checkout $(curl https://api.github.com/repos/$_author/$_pkgname/releases/latest | grep tag_name| cut -d '"' -f4) +} + +pkgver() { + cd "$_pkgname" + printf "%s.r%s.%s" "$(cat setup.py | grep -i version | grep -v '#' | cut -d '"' -f2 | head -n 1)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$_pkgname" + python setup.py install --root="${pkgdir}/" --optimize=1 + install -Dm644 LICENSE* "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |