desktop/openscenegraph/PKGBUILD

40 lines
982 B
Bash
Raw Normal View History

2011-05-13 09:43:18 +08:00
pkgname=openscenegraph
_pkgname=OpenSceneGraph
pkgver=3.6.3
2013-09-21 04:34:57 +08:00
pkgrel=1
2011-05-13 09:43:18 +08:00
pkgdesc="FOSS high performance real-time graphics toolkit."
2013-09-21 04:34:57 +08:00
arch=('x86_64')
2011-05-13 09:43:18 +08:00
license=('custom:OSGPL')
url="http://www.openscenegraph.org"
2013-09-21 04:34:57 +08:00
depends=('curl' 'giflib' 'jasper' 'librsvg' 'pth' 'xine-lib')
makedepends=('cmake' 'libvncserver' 'qt5-base' 'ffmpeg' 'mesa' 'gdal')
optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib' 'qt5-base')
2012-03-07 19:00:46 +08:00
categories=('games')
source=("https://github.com/$pkgname/$_pkgname/archive/$_pkgname-$pkgver.tar.gz")
md5sums=('3bc355c7dcd3f9eef84d4dc82dd0b19d')
2011-05-13 09:43:18 +08:00
build() {
cd $_pkgname-$_pkgname-$pkgver
2012-04-15 03:35:42 +08:00
mkdir -p build && cd build
2013-09-21 04:34:57 +08:00
2011-05-13 09:43:18 +08:00
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
2011-05-13 09:43:18 +08:00
..
2012-04-15 03:35:42 +08:00
2011-05-13 09:43:18 +08:00
make
}
package() {
cd $_pkgname-$_pkgname-$pkgver/build
2011-05-13 09:43:18 +08:00
make DESTDIR=$pkgdir install
# Fix installation directory.
2013-09-21 04:34:57 +08:00
mv $pkgdir/usr/lib64 $pkgdir/usr/lib
# License.
install -D -m644 ../LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
2011-05-13 09:43:18 +08:00
}