diff options
author | acxz | 2020-11-01 22:14:16 -0500 |
---|---|---|
committer | acxz | 2020-11-01 22:14:16 -0500 |
commit | eddd11caf1a150baa748bb0546384db7af090d53 (patch) | |
tree | 93af193ea7dbc74f73b5dff982ef12757e9b6f7b /PKGBUILD | |
download | aur-python-rlgear-git.tar.gz |
create python-rlgear package
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cea23b08b251 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: acxz <akashpatel2008 at yahoo dot com> + +pkgname=python-rlgear-git +pkgver=r25.957ebb7 +pkgrel=1 +pkgdesc="Makes setting up RL projects with Rllib a bit more turn-key" +arch=('any') +url='https://github.com/esquires/rlgear' +license=('BSD-3-Clause') +depends=('python' 'python-git-python' 'python-tabulate' 'python-pandas' + 'python-matplotlib' 'python-gym' 'python-dataclasses' 'python-ray' + 'python-crc32c' 'python-requests' 'python-dm-tree' 'python-lz4') +makedepends=('python' 'python-setuptools') +_pkgname=rlgear +source=("${_pkgname}::git+https://github.com/esquires/rlgear") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${_pkgname}" + python setup.py build +} + +package() { + cd "${srcdir}/${_pkgname}" + python setup.py install --root="$pkgdir"/ --optimize=1 +} |