diff options
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 24 |
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f59f6f2df7ed --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = paddlepaddle-bin + pkgdesc = Machine Learning Framework from Industrial Practice + pkgver = 2.1.2 + pkgrel = 1 + url = https://github.com/PaddlePaddle/Paddle + arch = x86_64 + license = Apache + makedepends = python-pip + makedepends = python-wheel + depends = python-protobuf + depends = python-numpy + depends = python-gast + depends = python-astor + depends = perl + provides = paddlepaddle=2.1.2 + conflicts = paddlepaddle + conflicts = paddlepaddle-gpu + source = https://files.pythonhosted.org/packages/cp39/p/paddlepaddle/paddlepaddle-2.1.2-cp39-cp39-manylinux1_x86_64.whl + sha256sums = 5a7a752df7cd7cfc07b555f2957934cb3cdae9eeaabb12fb0b1129019b9a04ac + +pkgname = paddlepaddle-bin diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..2aa5918c6c72 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg/ +src/ +*.tar* +*.log +*.whl
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1a57286a0d12 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Sam L. Yes <samlukeyes123@gmail.com> + +_name=paddlepaddle +pkgname=$_name-bin +_py=cp39 +pkgver=2.1.2 +pkgrel=1 +pkgdesc="Machine Learning Framework from Industrial Practice" +url="https://github.com/PaddlePaddle/Paddle" +depends=('python-protobuf' 'python-numpy' 'python-gast' 'python-astor' 'perl') +makedepends=('python-pip' 'python-wheel') +provides=($_name=$pkgver) +conflicts=($_name $_name-gpu) +license=('Apache') +arch=('x86_64') +_wheel=${_name//-/_}-$pkgver-$_py-${_py}-manylinux1_x86_64.whl +source=(https://files.pythonhosted.org/packages/$_py/${_name::1}/$_name/$_wheel) +sha256sums=('5a7a752df7cd7cfc07b555f2957934cb3cdae9eeaabb12fb0b1129019b9a04ac') + +package() { + export PIP_CONFIG_FILE=/dev/null + pip install --isolated --root="$pkgdir" --ignore-installed --no-deps $_wheel + python -O -m compileall "${pkgdir}" +} |