diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/torch |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/torch')
-rw-r--r-- | community/torch/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/torch/PKGBUILD b/community/torch/PKGBUILD new file mode 100644 index 000000000..c9691a6f6 --- /dev/null +++ b/community/torch/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 21793 2010-07-17 10:25:22Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=torch +pkgver=3.1 +pkgrel=2 +pkgdesc="State of the art machine learning library" +arch=(i686 x86_64) +url="http://packages.debian.org/source/lenny/torch3" +license=('GPL') +depends=(gcc-libs) +source=(http://ftp.de.debian.org/debian/pool/main/t/torch3/torch3_$pkgver.orig.tar.gz + http://ftp.de.debian.org/debian/pool/main/t/torch3/torch3_$pkgver-2.diff.gz) +md5sums=('04f7dc72a1e875a12ddf8ac77ec2dcc7' + 'b928c4206abb3209435dca27ad3e3c22') + +build() { + cd "$srcdir/torch3-$pkgver.orig" + + [ $NOEXTRACT -eq 1 ] || cat $srcdir/torch3_$pkgver-2.diff | patch -p1 + [ $NOEXTRACT -eq 1 ] || make depend + + make || return 1 + + mkdir -p $pkgdir/usr/{include/torch,lib} + + for i in core convolutions datasets decoder distributions gradients kernels matrix nonparametrics speech; do + install -D -m0644 $i/*.h $pkgdir/usr/include/torch/ || return 1 + done + + install -D -m0755 lib/*.so* $pkgdir/usr/lib/ && \ + install -D -m0644 lib/*.a $pkgdir/usr/lib/ +} |