2 pkgbase=python-lockfile
3 pkgname=(python-lockfile)
6 pkgdesc='Platform-independent file locking module'
8 url='https://github.com/openstack/pylockfile'
11 makedepends=(python-setuptools python-pbr)
12 checkdepends=(python-nose)
13 source=(https://files.pythonhosted.org/packages/source/l/lockfile/lockfile-$pkgver.tar.gz)
14 sha256sums=('6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799')
17 cp -a lockfile-$pkgver{,-py2}
21 cd "$srcdir/lockfile-$pkgver"
26 cd "$srcdir/lockfile-$pkgver"
31 cd "$srcdir/lockfile-$pkgver"
32 python setup.py install --root="$pkgdir" --optimize=1
33 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"