summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: db78cdcc0c44bd324a53ffd4a7af80b84e7927e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Jingbei Li <i@jingbei.li>
pkgname='python-tflearn-git'
pkgdesc="TFlearn is a modular and transparent deep learning library built on top of Tensorflow."
pkgver=0.2.2.r144.gb33bee3
pkgrel=1
depends=('python-numpy' 'python-six' 'python-pillow' 'python-tensorflow')
makedepends=('python-setuptools' 'git')
arch=('any')
url="http://tflearn.org/"
license=('MIT')
source=("$pkgname::git+https://github.com/tflearn/tflearn")
md5sums=('SKIP')

pkgver(){
	cd "${pkgname}"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

package() {
	cd "$srcdir/$pkgname"
	python setup.py install --root="$pkgdir/" --optimize=1
	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}