blob: 22d5fcd1e3d7042b295d4aaa08adb731fef93bd3 (
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
|
# Maintainer: Samuel Fernando Mesa Giraldo <samuelmesa@linuxmail.org>
# Contributor: James Duley <jagduley gmail>
# Contributor: A. Weiss <adam [at] archlinux.us>
pkgname=osgearth
pkgver=3.5
pkgrel=1
pkgdesc="A terrain rendering toolkit for OpenSceneGraph"
arch=('i686' 'x86_64')
url='https://osgearth.org'
license=('LGPL')
depends=('openscenegraph' 'gdal' 'minizip' 'qt5-base' 'rocksdb' 'duktape' 'rapidjson' 'draco' 'protobuf')
makedepends=('cmake')
provides=('osgearth')
source=("https://github.com/gwaldron/osgearth/archive/${pkgname}-${pkgver}.tar.gz" "fix_rapidjson.patch")
md5sums=('40d99071dfaef77d7da103cbed6d194c'
'9da9dba182e6a182e0baaa55b588aa35')
prepare() {
cd ${srcdir}/${pkgname}-${pkgname}-${pkgver}
patch --forward --strip=1 --input="${srcdir}/fix_rapidjson.patch"
git clone https://github.com/Esri/lerc.git src/third_party/lerc
cd src/third_party/lerc
git checkout 19542a00b9a8b5c1089f74239e5859e02e403212
}
build() {
cd ${srcdir}/${pkgname}-${pkgname}-${pkgver}
#Build
if [[ -d "build" ]]; then
(rm -rf build)
fi
mkdir build
cd build
cmake \
-DLIB_POSTFIX= \
-Dosg_OPENGL_PROFILE=GLCORE \
-DOpenGL_GL_PREFERENCE=GLVND \
-DCMAKE_INSTALL_PREFIX=/usr \
..
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgname}-${pkgver}/build
make DESTDIR=$pkgdir install
install -d ${pkgdir}/usr/share/osgearth
install -d ${pkgdir}/usr/share/osgearth/test
install -d ${pkgdir}/usr/share/osgearth/data
cp -rfv ${srcdir}/${pkgname}-${pkgname}-${pkgver}/tests/* ${pkgdir}/usr/share/osgearth/test
cp -rfv ${srcdir}/${pkgname}-${pkgname}-${pkgver}/data/* ${pkgdir}/usr/share/osgearth/data
}
|