summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bad711cbc38e6d9cb3f45d07ab82f1bf0353f1e (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
38
39
40
41
42
43
44
# Maintainer: otaj
#
# Thanks to Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com> for
# his PKGBUILD that served as a base for this one

pkgbase=python-torchfile-git
pkgdesc="Serialization of torch data"
pkgname=(python-torchfile-git python2-torchfile-git)
pkgver=r33.20b3e13
pkgrel=1
arch=(any)
url='https://github.com/bshillingford/python-torchfile'
license=(BSD3)
makedepends=(
  'git'
  'python-setuptools'
  'python2-setuptools'
)
options=(!emptydirs)
source=("git+https://github.com/bshillingford/python-torchfile.git")
sha256sums=('SKIP')

pkgver() {
  cd "python-torchfile"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package_python-torchfile-git() {
depends=('python-numpy')
provides=('python-torchfile')
conflicts=('python-torchfile')
  cd "${srcdir}/python-torchfile"
  python setup.py install --root="${pkgdir}/" --optimize=1
  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

package_python2-torchfile-git() {
depends=('python2-numpy')
provides=('python2-torchfile')
conflicts=('python2-torchfile')
  cd "${srcdir}/python-torchfile"
  python2 setup.py install --root="${pkgdir}/" --optimize=1
  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}