diff options
author | Guillaume Horel | 2018-07-12 16:06:51 -0400 |
---|---|---|
committer | Guillaume Horel | 2018-07-12 16:06:51 -0400 |
commit | 8e9bbe9eb91570534285917f8b8a584dd726f63d (patch) | |
tree | e1349dd0fdb351568189427359d803b4fca52fb2 | |
download | aur-8e9bbe9eb91570534285917f8b8a584dd726f63d.tar.gz |
initial import
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..27f7b4942498 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-lru-dict + pkgdesc = A dict like LRU container. + pkgver = 1.1.6 + pkgrel = 1 + url = https://pypi.org/project/lru-dict/ + arch = x86_64 + license = MIT + makedepends = python-setuptools + depends = python + source = https://pypi.org/packages/source/l/lru-dict/lru-dict-1.1.6.tar.gz + sha256sums = 365457660e3d05b76f1aba3e0f7fedbfcd6528e97c5115a351ddd0db488354cc + +pkgname = python-lru-dict + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b563ba0f6dd9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Guillaume Horel <guillaume.horel@gmail.com> + +pkgname=python-lru-dict +_pkgname=lru-dict +pkgver=1.1.6 +pkgrel=1 +pkgdesc="A dict like LRU container." +arch=('x86_64') +url="https://pypi.org/project/lru-dict/" +license=('MIT') +depends=('python') +checkdepends=() +optdepends=() +makedepends=('python-setuptools') +source=("https://pypi.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz") +sha256sums=('365457660e3d05b76f1aba3e0f7fedbfcd6528e97c5115a351ddd0db488354cc') + +build() { + cd "$srcdir/$_pkgname-$pkgver" + python setup.py build_ext + +} +package() { + cd "$srcdir/$_pkgname-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 +} + +check() { + cd "$srcdir/$_pkgname-$pkgver" + python setup.py build_ext --inplace + PYTHONPATH=. python test/test_lru.py +} +# vim:ts=2:sw=2:et: |