diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 21 insertions, 22 deletions
@@ -1,45 +1,44 @@ -# Maintainer: Glen Dsouza <gdsouza@linuxmail.org> +# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix +# Contributor: Glen Dsouza <gdsouza@linuxmail.org> # Contributor: jmf <jmf at mesecons dot net> pkgname=openscenegraph-git -pkgver=3.7.0r15866.198592733 -_pkgver=3.7.0 +pkgver=3.6.5.r103.g06558a5dd pkgrel=1 pkgdesc="An open source, high performance real-time graphics toolkit" -arch=('x86_64') +arch=(x86_64) url="http://www.openscenegraph.org" license=('custom:OSGPL') -depends=('giflib' 'jasper' 'librsvg' 'xine-lib' 'curl' 'pth') -makedepends=('cmake' 'libvncserver' 'qt5-base' 'ffmpeg' 'mesa') -optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib' 'qt5-base' 'ffmpeg') -provides=('openscenegraph' 'openthreads') -conflicts=('openscenegraph' 'openthreads') -source=("openscenegraph::git+https://github.com/openscenegraph/OpenSceneGraph.git#branch=master") -md5sums=('SKIP') +depends=(libglvnd libxinerama) +makedepends=(git cmake fontconfig ffmpeg gdal gst-plugins-base-libs jasper librsvg libvncserver openexr poppler-glib) +optdepends=(ffmpeg gdal gst-plugins-base-libs jasper librsvg libvncserver openexr poppler-glib) +provides=(openscenegraph openthreads) +conflicts=(openscenegraph openthreads) +source=("git+https://github.com/openscenegraph/OpenSceneGraph.git#branch=OpenSceneGraph-3.6") +sha256sums=('SKIP') pkgver() { - cd "${srcdir}/${pkgname%-git}" - printf "%sr%s.%s" "${_pkgver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "${srcdir}/OpenSceneGraph" + git describe --long --tags | sed 's/^OpenSceneGraph.//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { - mkdir -p "${srcdir}/${pkgname%-git}/build" + mkdir -p "${srcdir}/OpenSceneGraph/build" } build() { - cd "${srcdir}/${pkgname%-git}/build" - cmake \ + cd "${srcdir}/OpenSceneGraph/build" + cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIBRARY_OUTPUT_PATH=/usr/lib \ - -DCMAKE_BUILD_TYPE=Release \ - .. - make + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release + + VERBOSE=1 make } package(){ - cd "${srcdir}/${pkgname%-git}/build" + cd "${srcdir}/OpenSceneGraph/build" make DESTDIR="$pkgdir" install install -Dm 644 "../LICENSE.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}" - mv "${pkgdir}/usr/lib64" "${pkgdir}/usr/lib" } |