summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 26a62c9e54b168c16310099e1b1b776a5e6351fc (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
52
53
# Maintainer: Tucos <baspape@gmail.com>
# Contributor: Hubert Grzeskowiak <arch at nemesis13 dot de>

pkgname=panda3d-runtime-git
pkgver=git
pkgrel=1
pkgdesc='3D engine with Python bindings. Runtime and web plugin.'
url="http://www.panda3d.org"
arch=('i686' 'x86_64')
depends=('openssl' 'shared-mime-info' 'desktop-file-utils')
makedepends=('python2' 'libpng' 'libjpeg')
source=('panda3d::git+https://github.com/panda3d/panda3d.git')
license=('BSD')
md5sums=('SKIP')

#prepare() {
#cd $srcdir/$pkgname-$pkgver
#patch -p1 -i $srcdir/patch.patch 
#}

build() {
  cd $srcdir/panda3d
  python2 makepanda/makepanda.py --everything --runtime --distributor cmu --host https://runtime.panda3d.org/
}

package() {
  cd $srcdir/panda3d
  python2 makepanda/installpanda.py --destdir=$pkgdir --runtime --outputdir=built_cmu_rt --prefix=/usr
  install -D -m755 $srcdir/panda3d/doc/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE

}

post_install() {
  ldconfig
  update-mime-database usr/share/mime
  update-desktop-database -q
}

post_upgrade() {
  update-mime-database usr/share/mime
  update-desktop-database -q
}

post_remove() {
  update-mime-database usr/share/mime
  update-desktop-database -q
}

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