[arch-commits] Commit in python-faker/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sun Dec 25 02:20:57 UTC 2016
Date: Sunday, December 25, 2016 @ 02:20:56
Author: felixonmars
Revision: 201786
archrelease: copy trunk to community-staging-any
Added:
python-faker/repos/community-staging-any/
python-faker/repos/community-staging-any/PKGBUILD
(from rev 201785, python-faker/trunk/PKGBUILD)
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
Copied: python-faker/repos/community-staging-any/PKGBUILD (from rev 201785, python-faker/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 02:20:56 UTC (rev 201786)
@@ -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.7.7
+_commit=3764f7bdf0d630bfcc6538bac195e7580d4b178d
+pkgrel=2
+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' 'git')
+checkdepends=('python-ukpostcodeparser' 'python2-ukpostcodeparser' 'python-nose' 'python2-nose'
+ 'python-mock' 'python2-mock' 'python-email-validator' 'python2-email-validator'
+ 'python2-ipaddress')
+source=("git+https://github.com/joke2k/faker.git#commit=$_commit")
+sha256sums=('SKIP')
+
+prepare() {
+ cp -a faker{,-py2}
+}
+
+build() {
+ cd "$srcdir"/faker
+ python setup.py build
+
+ cd "$srcdir"/faker-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/faker
+ nosetests3
+
+ cd "$srcdir"/faker-py2
+ nosetests2
+}
+
+package_python-faker() {
+ depends=('python-setuptools' 'python-dateutil')
+ provides=("python-fake-factory=$pkgver")
+ conflicts=('python-fake-factory')
+ replaces=('python-fake-factory')
+
+ cd "$srcdir"/faker
+ 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-ipaddress')
+ provides=("python2-fake-factory=$pkgver")
+ conflicts=('python2-fake-factory')
+ replaces=('python2-fake-factory')
+
+ cd "$srcdir"/faker-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