Browse Source

[trunk] -> [community-staging] 'python-filelock-3.4.0-2' add

master
artoo 7 months ago
parent
commit
9b10354b2a
  1. 2
      trunk/PKGBUILD
  2. 32
      x86_64/community-staging/PKGBUILD

2
trunk/PKGBUILD

@ -2,7 +2,7 @@
pkgname=python-filelock
pkgver=3.4.0
pkgrel=1
pkgrel=2
pkgdesc="A platform independent file lock"
url="https://github.com/benediktschmitt/py-filelock"
license=('custom:Unlicense')

32
x86_64/community-staging/PKGBUILD

@ -0,0 +1,32 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-filelock
pkgver=3.4.0
pkgrel=2
pkgdesc="A platform independent file lock"
url="https://github.com/benediktschmitt/py-filelock"
license=('custom:Unlicense')
arch=('any')
depends=('python')
makedepends=('python-setuptools' 'python-setuptools-scm')
checkdepends=('python-pytest' 'python-pytest-timeout')
source=("$pkgname-$pkgver.tar.gz::https://github.com/benediktschmitt/py-filelock/archive/$pkgver.tar.gz")
sha512sums=('0dc85f083a8c60605dfbd0b6fe55a96b5872e5b8ce3fd746925444571d02e243459bed6cd2d8aa9d7eda7d197bdc31b289cfcf1f0aef295779ca900d24abcbd8')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
build() {
cd py-filelock-$pkgver
python setup.py build
}
check() {
cd py-filelock-$pkgver
PYTHONPATH=src pytest tests
}
package() {
cd py-filelock-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
Loading…
Cancel
Save