summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2455daf88449e9554ce1687376e1f9ff2612b62d (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
54
55
56
57
58
pkgname=cosmonium-git
_pkgname=cosmonium
pkgver=v0.3.0.dev581.161.gf6c3458
pkgrel=1
pkgdesc="3D astronomy and space exploration program"
arch=('x86_64')
url="https://github.com/cosmonium/cosmonium"
license=('GPL3')
depends=()
makedepends=('python-numpy' 'panda3d')
conflicts=('cosmonium-bin')
options=('!libtool')
source=("git+https://github.com/cosmonium/cosmonium.git"
        "git+https://github.com/cosmonium/P3DModuleBuilder.git"
        "git+https://github.com/cosmonium/cosmonium-data.git"
        "git+https://github.com/cosmonium/cefpanda.git"
        "git+https://github.com/cosmonium/panda3d-gltf.git"
        "git+https://github.com/cosmonium/TabbedFrame.git"
        "git+https://github.com/cosmonium/DirectGui-layout-system.git"
        "git+https://github.com/cosmonium/DirectFolderBrowser.git")
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

pkgver() {
	cd ${_pkgname}
	git describe --always | sed 's/-/./g'
}

prepare() {
  cd "$srcdir"/$_pkgname
  git submodule init
  git config submodule.tools/p3d_module_builder.url		"${srcdir}/P3DModuleBuilder"
  git config submodule.data.url					"${srcdir}/cosmonium-data"
  git config submodule.third-party/cefpanda.url			"${srcdir}/cefpanda"
  git config submodule.third-party/gltf.url			"${srcdir}/panda3d-gltf"
  git config submodule.third-party/tabbedframe.url		"${srcdir}/TabbedFrame"
  git config submodule.third-party/directguilayout.url		"${srcdir}/DirectGui-layout-system"
  git config submodule.third-party/directfolderbrowser.url	"${srcdir}/DirectFolderBrowser"
  git -c protocol.file.allow=always submodule update
  ls -lah data

}
build() {
  cd "$srcdir"/$_pkgname
  make
}

package() {
  cd "$srcdir"/$_pkgname
  make DESTDIR="$pkgdir" install
}