Date: Saturday, January 14, 2017 @ 20:39:08 Author: demize Revision: 207413
python-frozendict: Import PKGBUILD Added: python-frozendict/repos/ python-frozendict/trunk/ python-frozendict/trunk/PKGBUILD ----------+ PKGBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) Added: trunk/PKGBUILD =================================================================== --- trunk/PKGBUILD (rev 0) +++ trunk/PKGBUILD 2017-01-14 20:39:08 UTC (rev 207413) @@ -0,0 +1,51 @@ +# Maintainer: Johannes Löthberg <johan...@kyriasis.com> +# Contributor: Ivan Shapovalov <inte...@intelfx.name> + +pkgbase=python-frozendict +pkgname=(python-frozendict python2-frozendict) +pkgver=1.2 +pkgrel=2 + +pkgdesc='An immutable dictionary' +url='https://pypi.python.org/pypi/frozendict/' +arch=('any') +license=('MIT') + +makedepends=('python-setuptools' + 'python2-setuptools') + +source=("https://pypi.org/packages/source/f/frozendict/frozendict-$pkgver.tar.gz") + +md5sums=('483ce6ddfe68ca197bc123aaafebf9ab') + +prepare() { + cp -a frozendict-$pkgver{,-python2} +} + +build() { + cd "$srcdir"/frozendict-$pkgver + python setup.py build + + cd "$srcdir"/frozendict-$pkgver-python2 + python2 setup.py build +} + +package_python-frozendict() { + depends=('python' 'python-setuptools') + + cd frozendict-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} + +package_python2-frozendict() { + depends=('python2' 'python2-setuptools') + + cd frozendict-$pkgver-python2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} + +# vim: set ts=4 sw=4 tw=0 ft=PKGBUILD :