mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
31 lines
954 B
Bash
31 lines
954 B
Bash
|
pkgname=torch
|
||
|
pkgver=3.1
|
||
|
pkgrel=1
|
||
|
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/
|
||
|
}
|