diff options
author | Antony Lee | 2016-04-18 02:56:51 -0700 |
---|---|---|
committer | Antony Lee | 2016-04-18 02:56:51 -0700 |
commit | 5e83a16810f8e5938b34ebf17f79120387f70962 (patch) | |
tree | 3ade7ae7aa8702f978dc7da9f5e84eee28c19a21 | |
download | aur-5e83a16810f8e5938b34ebf17f79120387f70962.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 32 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5c50e8048b94 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +# Generated by mksrcinfo v8 +# Mon Apr 18 09:56:36 UTC 2016 +pkgbase = python-xxhash + pkgdesc = Python binding for xxHash + pkgver = 0.5.0 + pkgrel = 1 + url = https://pypi.python.org/pypi/xxhash/ + arch = i686 + arch = x86_64 + license = BSD + depends = python + source = https://pypi.python.org/packages/source/x/xxhash/xxhash-0.5.0.tar.gz + md5sums = a12d5502c3a216c690f290f9d38eca4a + +pkgname = python-xxhash + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05c6d4d4c97b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..69d05ac959e9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Antony Lee <anntzer dot lee at gmail dot com> + +_pyname=xxhash +_pyver=0.5.0 +pkgname=python-${_pyname,,} +pkgver=$_pyver +pkgrel=1 +pkgdesc='Python binding for xxHash' +url="https://pypi.python.org/pypi/$_pyname/" +depends=('python') +makedepends=() +checkdepends=() +license=('BSD') +arch=('i686' 'x86_64') +source=("https://pypi.python.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-${_pyver:-$pkgver}.tar.gz") +md5sums=('a12d5502c3a216c690f290f9d38eca4a') + +build() { + cd $srcdir/$_pyname-${_pyver:-$pkgver} + python setup.py build +} + +check() { + cd $srcdir/$_pyname-${_pyver:-$pkgver} + python setup.py test +} + +package() { + cd $srcdir/$_pyname-${_pyver:-$pkgver} + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |