From 15b0a4922eb8cb0c3d772f6fcdccf722be9aedf6 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Mon, 29 Mar 2021 23:06:16 +0000 Subject: [PATCH] extra/python-incremental to 21.3.0-1.1 --- extra/python-incremental/PKGBUILD | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 extra/python-incremental/PKGBUILD diff --git a/extra/python-incremental/PKGBUILD b/extra/python-incremental/PKGBUILD new file mode 100644 index 000000000..fa401abb8 --- /dev/null +++ b/extra/python-incremental/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Felix Yan + +# ALARM: Kevin Mihelich +# - drop python2 variant, can't build anymore + +pkgname=python-incremental +pkgver=21.3.0 +pkgrel=1.1 +pkgdesc='A small library that versions your Python projects' +arch=('any') +license=('MIT') +url='https://github.com/hawkowl/incremental' +makedepends=('python-setuptools' 'python-click' 'python2-click' 'python-twisted') +checkdepends=('python-pytest-runner') +source=("https://github.com/hawkowl/incremental/archive/incremental-$pkgver.tar.gz") +sha512sums=('99a9e27b8513c4a13a74d37ae3d2c912af78ff9c6c528de1cba84767e2c08c9fc00cb54832efcccc70b922ac1582dd116cf8e8ba3f69926b424cf204ba4f0e7d') + +build() { + cd "$srcdir"/incremental-incremental-$pkgver + python setup.py build +} + +check() { + cd "$srcdir"/incremental-incremental-$pkgver + LC_CTYPE=en_US.UTF-8 python setup.py ptr +} + +package() { + depends=('python-click' 'python-twisted') + + cd incremental-incremental-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +# vim:set ts=2 sw=2 et: