[arch-commits] Commit in python-faker/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Aug 14 08:40:53 UTC 2018


    Date: Tuesday, August 14, 2018 @ 08:40:53
  Author: felixonmars
Revision: 371388

archrelease: copy trunk to community-testing-any

Added:
  python-faker/repos/community-testing-any/
  python-faker/repos/community-testing-any/PKGBUILD
    (from rev 371387, python-faker/trunk/PKGBUILD)

----------+
 PKGBUILD |   65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

Copied: python-faker/repos/community-testing-any/PKGBUILD (from rev 371387, python-faker/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-08-14 08:40:53 UTC (rev 371388)
@@ -0,0 +1,65 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com>
+# Contributor: dnuux <dnuuxx at gmail.com>
+
+pkgbase=python-faker
+pkgname=(python-faker python2-faker)
+pkgver=0.9.0
+pkgrel=1
+pkgdesc='Faker generates fake data for you.'
+arch=('any')
+url='http://www.joke2k.net/faker/'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-dateutil' 'python2-dateutil'
+             'python-text-unidecode' 'python2-text-unidecode')
+checkdepends=('python-ukpostcodeparser' 'python2-ukpostcodeparser'
+              'python-mock' 'python2-mock' 'python-email-validator' 'python2-email-validator'
+              'python2-ipaddress')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/joke2k/faker/archive/v$pkgver.tar.gz")
+sha512sums=('259b64a0d99da9b4e5048e372a801ca75c3eab0fdd0004b341e10c251417dcc059cf92eedf1d3a3780e1c938a507f40932986b636f6ec428beeb70c47eb4f967')
+
+prepare() {
+  cp -a faker-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/faker-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/faker-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/faker-$pkgver
+  python setup.py test
+
+  cd "$srcdir"/faker-$pkgver-py2
+  python2 setup.py test
+}
+
+package_python-faker() {
+  depends=('python-setuptools' 'python-dateutil' 'python-text-unidecode')
+  provides=("python-fake-factory=$pkgver")
+  conflicts=('python-fake-factory')
+  replaces=('python-fake-factory')
+
+  cd "$srcdir"/faker-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.txt
+}
+
+package_python2-faker() {
+  depends=('python2-setuptools' 'python2-dateutil' 'python2-text-unidecode' 'python2-ipaddress')
+  provides=("python2-fake-factory=$pkgver")
+  conflicts=('python2-fake-factory')
+  replaces=('python2-fake-factory')
+
+  cd "$srcdir"/faker-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  mv "$pkgdir"/usr/bin/faker{,2}
+  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.txt
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list