[arch-commits] Commit in python-pydenticon/repos (2 files)
Johannes Löthberg
demize at archlinux.org
Fri Jan 20 14:35:50 UTC 2017
Date: Friday, January 20, 2017 @ 14:35:49
Author: demize
Revision: 208131
archrelease: copy trunk to community-any
Added:
python-pydenticon/repos/community-any/
python-pydenticon/repos/community-any/PKGBUILD
(from rev 208130, python-pydenticon/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-pydenticon/repos/community-any/PKGBUILD (from rev 208130, python-pydenticon/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2017-01-20 14:35:49 UTC (rev 208131)
@@ -0,0 +1,54 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+# Contributor: Ivan Shapovalov <intelfx100 at gmail.com>
+
+pkgbase=python-pydenticon
+pkgname=(python-pydenticon python2-pydenticon)
+pkgver=0.3
+pkgrel=2
+
+pkgdesc='Library for generating identicons'
+url='https://pypi.python.org/pypi/pydenticon/'
+arch=('any')
+license=('BSD')
+
+makedepends=('python'
+ 'python-setuptools'
+ 'python2'
+ 'python2-setuptools')
+
+source=("https://pypi.org/packages/source/p/pydenticon/pydenticon-$pkgver.tar.gz")
+
+md5sums=('597b52f1fab9b373239e040fccf2cd25')
+
+prepare() {
+ chmod -R go=u-w pydenticon-$pkgver # files in the source tarball have weird permissions
+ cp -a pydenticon-$pkgver{,-python2}
+}
+
+build() {
+ cd "$srcdir"/pydenticon-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pydenticon-$pkgver-python2
+ python2 setup.py build
+}
+
+package_python-pydenticon() {
+ depends=('python' 'python-pillow')
+
+ cd pydenticon-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pydenticon() {
+ depends=('python2' 'python2-pillow')
+
+ cd pydenticon-$pkgver-python2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim: set ts=4 sw=4 tw=0 ft=PKGBUILD :
More information about the arch-commits
mailing list