diff options
author | Timothy Redaelli | 2021-03-01 10:08:08 +0000 |
---|---|---|
committer | Timothy Redaelli | 2021-03-01 10:08:08 +0000 |
commit | df8a133a58b1b46ff897a59054deffdf5192f708 (patch) | |
tree | fafa347bd915cfaab9a2735cddea09e79035628b /PKGBUILD | |
download | aur-python-rocksdb.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..22dc447c7a77 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,19 @@ +# Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com> + +pkgname=python-rocksdb +pkgver=0.7.0 +pkgrel=1 +pkgdesc="Python bindings for RocksDB" +arch=(any) +url="https://github.com/twmht/python-rocksdb" +license=(BSD License) +makedepends=("python" "python-pip") +depends=("rocksdb") +build() { + pip install --no-deps --target="python-rocksdb" python-rocksdb==$pkgver +} +package() { + sitepackages=$(python -c "import site; print(site.getsitepackages()[0])") + mkdir -p $pkgdir/"$sitepackages" + cp -r $srcdir/python-rocksdb/* $pkgdir/"$sitepackages" +} |