[arch-commits] Commit in python-cookiecutter/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 18:30:14 UTC 2020
Date: Monday, November 9, 2020 @ 18:30:14
Author: foutrelis
Revision: 748023
archrelease: copy trunk to community-staging-any
Added:
python-cookiecutter/repos/community-staging-any/
python-cookiecutter/repos/community-staging-any/PKGBUILD
(from rev 748021, python-cookiecutter/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-cookiecutter/repos/community-staging-any/PKGBUILD (from rev 748021, python-cookiecutter/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 18:30:14 UTC (rev 748023)
@@ -0,0 +1,43 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=cookiecutter
+pkgname=python-cookiecutter
+pkgver=1.7.2
+pkgrel=2
+pkgdesc="A command-line utility that creates projects from project templates"
+arch=('any')
+url="https://github.com/cookiecutter/cookiecutter"
+license=('BSD')
+depends=('python-binaryornot' 'python-click' 'python-future' 'python-jinja'
+'python-jinja-time' 'python-poyo' 'python-requests' 'python-slugify'
+'python-whichcraft')
+makedepends=('python-setuptools')
+checkdepends=('git' 'python-freezegun' 'python-pytest' 'python-pytest-cov'
+'python-pytest-mock')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('8fb6db75703a2c6276d275817b81c0e5d5f15226236e8c5442fbda6198aaec19c3fd68c030f79f6bca55258c0c248660b32d1344f7d6b06ecf5563b43474d877')
+
+prepare() {
+ mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ pytest -v
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list