summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorclintval2018-05-16 19:58:40 -0700
committerclintval2018-05-16 19:58:40 -0700
commit6c1c181e3254f977d2a35a539cfc413a3593aadf (patch)
treec473bab8d89aee13939495d3c1cf476301ba0f82
downloadaur-6c1c181e3254f977d2a35a539cfc413a3593aadf.tar.gz
First commit with PKGBUILD and .SRCINFO
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD58
2 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1f62e60cee3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = python-nimfa
+ pkgdesc = Nonnegative matrix factorization in Python
+ pkgver = 1.3.2
+ pkgrel = 1
+ url = https://github.com/meowklaski/nimfa
+ arch = any
+ license = BSD
+ makedepends = python
+ makedepends = python-setuptools
+ makedepends = python2
+ makedepends = python2-setuptools
+ options = !emptydirs
+ source = python-nimfa-1.3.2.tar.gz::https://pypi.io/packages/source/n/nimfa/nimfa-1.3.2.tar.gz
+ sha256sums = 87171493f5af8201297ea67938342e98277e7726ae8ff010b4c7738948ce0c47
+
+pkgname = python-nimfa
+ depends = python
+ depends = python-numpy
+ depends = python-scipy
+
+pkgname = python2-nimfa
+ depends = python2
+ depends = python2-numpy
+ depends = python2-scipy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1ccad52d01e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+# Maintainer: Clint Valentine <valentine.clint@gmail.com>
+
+_name=nimfa
+pkgbase='python-nimfa'
+pkgname=('python-nimfa' 'python2-nimfa')
+pkgver=1.3.2
+pkgrel=1
+pkgdesc="Nonnegative matrix factorization in Python"
+arch=('any')
+url=https://github.com/meowklaski/"${_name}"
+license=('BSD')
+makedepends=(
+ 'python' 'python-setuptools'
+ 'python2' 'python2-setuptools')
+options=(!emptydirs)
+source=("${pkgname}"-"${pkgver}".tar.gz::https://pypi.io/packages/source/"${_name:0:1}"/"${_name}"/"${_name}"-"${pkgver}".tar.gz)
+sha256sums=('87171493f5af8201297ea67938342e98277e7726ae8ff010b4c7738948ce0c47')
+
+prepare() {
+ cp -a nimfa-"${pkgver}"{,-py2}
+}
+
+package() {
+ cd "${srcdir}"/nimfa-"${pkgver}"
+ python setup.py install --root="${pkgdir}/" --optimize=1
+}
+
+build(){
+ cd "${srcdir}"/nimfa-"${pkgver}"
+ python setup.py build
+
+ cd "${srcdir}"/nimfa-"${pkgver}"-py2
+ python2 setup.py build
+}
+
+package_python2-nimfa() {
+ depends=(
+ 'python2'
+ 'python2-numpy'
+ 'python2-scipy'
+ )
+
+ cd nimfa-"${pkgver}"-py2
+ python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+ install -Dm644 COPYING.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/COPYING.txt
+}
+
+package_python-nimfa() {
+ depends=(
+ 'python'
+ 'python-numpy'
+ 'python-scipy'
+ )
+
+ cd nimfa-"${pkgver}"
+ python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
+ install -Dm644 COPYING.txt "${pkgdir}"/usr/share/licenses/"${pkgname}"/COPYING.txt
+}