blob: feb8549c2116609e22ca98e8e795199afe713c2d (
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
|
# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>
pkgname=python-mnist-git
pkgver=0.5.39.8364cb4
pkgrel=1
pkgdesc="Simple MNIST data parser written in Python."
arch=("any")
license=("BSD")
url="https://github.com/sorki/python-mnist"
depends=("python")
makedepends=("python-setuptools")
source=("git+https://github.com/sorki/python-mnist.git")
sha512sums=("SKIP")
pkgver() {
cd python-mnist
version=$(grep "VERSION = " setup.py | sed "s/VERSION = '//" | sed "s/'//")
hash=$(git log --pretty=format:'%h' -n 1)
revision=$(git rev-list --count HEAD)
echo $version.$revision.$hash
}
build() {
cd python-mnist
python setup.py build
}
package() {
cd python-mnist
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/python-mnist-git/LICENSE"
}
|