diff options
author | Andrzej Giniewicz | 2015-07-07 21:34:56 +0200 |
---|---|---|
committer | Andrzej Giniewicz | 2015-07-07 21:34:56 +0200 |
commit | a1bd98b34c721735515b0c3ee9e8d8374a954b6d (patch) | |
tree | 342c312b33fbd5e91a4b4d817b566a7f2855da2a | |
download | aur-a1bd98b34c721735515b0c3ee9e8d8374a954b6d.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3cc5a31fbd94 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = python2-ffnet + pkgdesc = Feed-forward neural network solution for python + pkgver = 0.8.0 + pkgrel = 1 + url = http://ffnet.sourceforge.net/ + arch = i686 + arch = x86_64 + license = GPL + depends = python2 + options = !emptydirs + source = https://pypi.python.org/packages/source/f/ffnet/ffnet-0.8.0.tar.gz + md5sums = ebffdc0c69a7b7fb8f61807aee3fab1d + +pkgname = python2-ffnet + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2c6b494b4288 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Andrzej Giniewicz <gginiu@gmail.com> + +pkgname=python2-ffnet +pkgver=0.8.0 +pkgrel=1 +pkgdesc="Feed-forward neural network solution for python" +arch=('i686' 'x86_64') +url="http://ffnet.sourceforge.net/" +license=('GPL') +depends=('python2') +options=('!emptydirs') +source=("https://pypi.python.org/packages/source/f/ffnet/ffnet-${pkgver}.tar.gz") +md5sums=('ebffdc0c69a7b7fb8f61807aee3fab1d') + +prepare() { + cd "$srcdir" + + sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + -i $(find . -name '*.py') +} + +build() { + cd "$srcdir/ffnet-$pkgver" + + unset LDFLAGS + python2 setup.py build +} + +package() { + cd "$srcdir/ffnet-$pkgver" + + python2 setup.py install --skip-build --root="$pkgdir" --optimize=1 +} |