summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 461afbaafa414629622555fdec2cf8672a22d627 (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
45
46
47
48
49
50
51
# Maintainer: Alexandr Parkhomenko <it@52tour.ru>

_author=rdeits
_pkgname=meshcat-python
pkgname=python-meshcat-git
pkgver=0.0.18.r58.g69e18e2
pkgrel=1
pkgdesc='MeshCat is a remotely-controllable 3D viewer, built on top of three.js'
arch=(
  'any'
#  'x86_64'
)

url='https://github.com/'
license=('MIT')
depends=('python'
'python-umsgpack' #aur 0kb
)
makedepends=('git')
optdepends=('opengrok')
provides=('python-meshcat' 'meshcat-python' 'meshcat')
source=("git://github.com/$_author/$_pkgname")
sha256sums=('SKIP')

prepare() {
  cd "$srcdir/$_pkgname"
  git submodule init
  git submodule update --recursive
  git fetch --tags
}

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

build() {
  cd "$srcdir/$_pkgname"
  python setup.py build
}

check() {
  cd "$srcdir/$_pkgname"
#  python setup.py test # need grok
}

package() {
  cd "$srcdir/$_pkgname"
  python setup.py install --root="$pkgdir/" --skip-build --optimize=1
  install -Dm644 "LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}