diff options
author | AlexandrParkhomenko | 2021-02-15 23:01:54 +0300 |
---|---|---|
committer | AlexandrParkhomenko | 2021-02-15 23:01:54 +0300 |
commit | 0a23fe922d9e29a457ccc56e9a82f72562583660 (patch) | |
tree | 34e6b7d440ee07a2c8422cfa0f28b54264e7d640 | |
download | aur-0a23fe922d9e29a457ccc56e9a82f72562583660.tar.gz |
welcome
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e0225a04d39d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-opentsne-git + pkgdesc = Extensible, parallel implementations of t-SNE + pkgver = 0.5.1 + pkgrel = 1 + url = https://opentsne.readthedocs.io/en/latest/ + arch = x86_64 + license = BSD + makedepends = python-setuptools + depends = fftw + depends = python-scikit-learn + depends = python-numba + source = git://github.com/pavlin-policar/opentsne + sha256sums = SKIP + +pkgname = python-opentsne-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ab85d3016efa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Contributor: Alexandr Parkhomenko <it@52tour.ru> + +_author=pavlin-policar +_pkgname=opentsne +pkgname=python-$_pkgname-git +pkgver=0.5.1 +pkgrel=1 +pkgdesc="Extensible, parallel implementations of t-SNE" +url="https://opentsne.readthedocs.io/en/latest/" +arch=('x86_64') +license=('BSD') +depends=('fftw' 'python-scikit-learn' 'python-numba') +makedepends=('python-setuptools') +source=("git://github.com/$_author/$_pkgname") +sha256sums=('SKIP') + +pkgver () { + cd "$srcdir/$_pkgname" + git describe --tags `git rev-list --tags --max-count=1` | sed -r 's/^v//;s/-RC/RC/;s/([^-]*-g)/r\1/;s/-/./g' #| sed -r "s/0$/$COMMIT/" +} + + +build() { + cd "${srcdir}/$_pkgname" + python setup.py build +} + +package() { + cd "${srcdir}/$_pkgname" + python setup.py install --root=${pkgdir} --optimize=1 +} |