Date: Saturday, May 25, 2019 @ 04:33:19 Author: felixonmars Revision: 469705
archrelease: copy trunk to community-any Added: python-flex/repos/community-any/PKGBUILD (from rev 469704, python-flex/trunk/PKGBUILD) Deleted: python-flex/repos/community-any/PKGBUILD ----------+ PKGBUILD | 96 ++++++++++++++++++++++--------------------------------------- 1 file changed, 35 insertions(+), 61 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-05-25 04:33:07 UTC (rev 469704) +++ PKGBUILD 2019-05-25 04:33:19 UTC (rev 469705) @@ -1,61 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-flex -pkgname=(python-flex python2-flex) -pkgver=6.14.0 -pkgrel=1 -pkgdesc="Swagger schema validator" -url="https://github.com/pipermerriam/flex" -license=('BSD') -arch=('any') -makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'python-yaml' - 'python2-yaml' 'python-validate-email' 'python2-validate-email' 'python-rfc3987' - 'python2-rfc3987' 'python-requests' 'python2-requests' 'python-strict-rfc3339' - 'python2-strict-rfc3339' 'python-click' 'python2-click' 'python-jsonpointer' - 'python2-jsonpointer') -checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-factory-boy' - 'python2-factory-boy' 'python-responses' 'python2-responses' 'python-pytest-httpbin' - 'python2-pytest-httpbin') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/pipermerriam/flex/archive/v$pkgver.tar.gz") -sha512sums=('4e3ab6cfc0d4ce214d1fe8565739bf80c6d0e083053770e57e3ba7b91560b264227ac39d1bacc724876f0555a55ed57ddc3b6b4e9b28a2605618f5e99b7d1d5c') - -prepare() { - sed -i 's/<2/<3/' flex-$pkgver/setup.py - cp -a flex-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/flex-$pkgver - python setup.py build - - cd "$srcdir"/flex-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/flex-$pkgver - python setup.py pytest - - cd "$srcdir"/flex-$pkgver-py2 - python2 setup.py pytest -} - -package_python-flex() { - depends=('python-six' 'python-yaml' 'python-validate-email' 'python-rfc3987' 'python-requests' - 'python-strict-rfc3339' 'python-click' 'python-jsonpointer') - - cd flex-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -package_python2-flex() { - depends=('python2-six' 'python2-yaml' 'python2-validate-email' 'python2-rfc3987' 'python2-requests' - 'python2-strict-rfc3339' 'python2-click' 'python2-jsonpointer') - - cd flex-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - - mv "$pkgdir"/usr/bin/swagger-flex{,2} -} Copied: python-flex/repos/community-any/PKGBUILD (from rev 469704, python-flex/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-05-25 04:33:19 UTC (rev 469705) @@ -0,0 +1,35 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-flex +pkgver=6.14.0 +pkgrel=2 +pkgdesc="Swagger schema validator" +url="https://github.com/pipermerriam/flex" +license=('BSD') +arch=('any') +depends=('python-six' 'python-yaml' 'python-validate-email' 'python-rfc3987' 'python-requests' + 'python-strict-rfc3339' 'python-click' 'python-jsonpointer') +makedepends=('python-setuptools') +checkdepends=('python-pytest-runner' 'python-factory-boy' 'python-responses' 'python-pytest-httpbin') +source=("$pkgname-$pkgver.tar.gz::https://github.com/pipermerriam/flex/archive/v$pkgver.tar.gz") +sha512sums=('4e3ab6cfc0d4ce214d1fe8565739bf80c6d0e083053770e57e3ba7b91560b264227ac39d1bacc724876f0555a55ed57ddc3b6b4e9b28a2605618f5e99b7d1d5c') + +prepare() { + sed -i 's/<2/<3/' flex-$pkgver/setup.py +} + +build() { + cd flex-$pkgver + python setup.py build +} + +check() { + cd flex-$pkgver + python setup.py pytest +} + +package() { + cd flex-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}