summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b346e0c8faef0d68cc7a11a16bf40c78712cf35 (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: otaj
#
# Thanks to Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com> for
# his PKGBUILD that served as a base for this one

pkgdesc="Serialization of torch data"
pkgname=python-torchfile-git
pkgver=r33.20b3e13
pkgrel=1
arch=(any)
url='https://github.com/bshillingford/python-torchfile'
license=(BSD3)
depends=('python-numpy')
makedepends=(
  'git'
  'python-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() {
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"
}