Date: Monday, September 17, 2018 @ 17:47:42 Author: felixonmars Revision: 382640
addpkg: python2-importlib_resources 1.0.1-1 Added: python2-importlib_resources/ python2-importlib_resources/repos/ python2-importlib_resources/trunk/ python2-importlib_resources/trunk/PKGBUILD ----------+ PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) Added: python2-importlib_resources/trunk/PKGBUILD =================================================================== --- python2-importlib_resources/trunk/PKGBUILD (rev 0) +++ python2-importlib_resources/trunk/PKGBUILD 2018-09-17 17:47:42 UTC (rev 382640) @@ -0,0 +1,30 @@ +# Maintainer: Felix Yan <[email protected]> + +pkgname=python2-importlib_resources +pkgver=1.0.1 +pkgrel=1 +pkgdesc='Read resources from Python packages' +arch=('any') +url='http://pypi.python.org/pypi/importlib_resources' +license=('Apache') +depends=('python2-typing' 'python2-pathlib2' 'python2-setuptools' 'python2-wheel') +makedepends=('python2-setuptools') +source=("https://pypi.io/packages/source/i/importlib_resources/importlib_resources-$pkgver.tar.gz") +sha256sums=('73f454e062ac149bafd262b18c1f9ebc91f53bd6474e028d1bf1c59ebd152efb') + +build() { + cd importlib_resources-$pkgver + python2 setup.py build +} + +check() { + cd importlib_resources-$pkgver + python2 -m unittest discover +} + +package() { + cd importlib_resources-$pkgver + python2 setup.py install --root="$pkgdir" --optimize=1 +} + +# vim: ts=2 sw=2 et:
