blob: 7bda8ea705f0eb39ffde71dec8d850c10660ab15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $Id: PKGBUILD 100522 2013-11-05 11:47:05Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=torch
pkgver=3.1
pkgrel=4
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.1.diff.gz)
md5sums=('04f7dc72a1e875a12ddf8ac77ec2dcc7'
'4f6c8e743e7a0aa9688f1e20b14797e4')
build() {
cd "$srcdir/torch3-$pkgver.orig"
[ $NOEXTRACT -eq 1 ] || cat $srcdir/torch3_$pkgver-2.1.diff | patch -p1
[ $NOEXTRACT -eq 1 ] || make depend
make
}
package() {
cd "$srcdir/torch3-$pkgver.orig"
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/
done
install -D -m0755 lib/*.so* $pkgdir/usr/lib/
install -D -m0644 lib/*.a $pkgdir/usr/lib/
}
|