[arch-commits] Commit in openscenegraph/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Thu Apr 26 07:44:07 UTC 2018


    Date: Thursday, April 26, 2018 @ 07:44:07
  Author: anthraxx
Revision: 318134

upgpkg: openscenegraph 3.4.1-2 (ffmpeg rebuild)

Modified:
  openscenegraph/trunk/PKGBUILD

----------+
 PKGBUILD |   42 ++++++++++++++++++++----------------------
 1 file changed, 20 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-04-26 07:39:30 UTC (rev 318133)
+++ PKGBUILD	2018-04-26 07:44:07 UTC (rev 318134)
@@ -1,45 +1,43 @@
-# $Id$
-# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
-# Maintainer: Hans Janssen <janserv at gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Hans Janssen <janserv at gmail.com>
 # Contributor: my64 <packages at obordes.com>
 # Contributor: Colin Pitrat <colin.pitrat at gmail.com>
 
 pkgname=openscenegraph
 pkgver=3.4.1
-pkgrel=1
-pkgdesc="An Open Source, high performance real-time graphics toolkit"
+pkgrel=2
+pkgdesc='Open Source, high performance real-time graphics toolkit'
+url='http://www.openscenegraph.org'
 arch=('x86_64')
 license=('custom:OSGPL')
-url="http://www.openscenegraph.org"
 depends=('giflib' 'jasper' 'librsvg' 'xine-lib' 'curl' 'pth')
 makedepends=('cmake' 'libvncserver' 'qt5-base' 'ffmpeg' 'mesa')
 optdepends=('libvncserver' 'gdal' 'openexr' 'poppler-glib' 'qt5-base' 'ffmpeg')
 conflicts=('openthreads')
 provides=('openthreads')
-source=(https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-$pkgver.tar.gz
-	openscenegraph-ffmpeg3.patch)
-sha256sums=('930eb46f05781a76883ec16c5f49cfb29a059421db131005d75bec4d78401fd5'
-            'a65fc1ac0538fddb8d11ef1ab2322a782715f8d2b42e0bb01a191212a0612477')
+source=(https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-${pkgver}.tar.gz)
+sha256sums=('930eb46f05781a76883ec16c5f49cfb29a059421db131005d75bec4d78401fd5')
+sha512sums=('4a65625e208d24256b5564bbe9d6f557758b51fae0acf85d1f71968a237fec299088536830fc862d25e02039de9ea13176b298a68aaa644eac958acbe1f4e143')
 
 prepare() {
-  cd OpenSceneGraph-OpenSceneGraph-$pkgver
-  # Fix build with ffmpeg 3.0 (Debian)
-#  patch -p2 -i ../openscenegraph-ffmpeg3.patch
+  mkdir -p OpenSceneGraph-OpenSceneGraph-${pkgver}/build
 }
 
 build() {
-  cd OpenSceneGraph-OpenSceneGraph-$pkgver
-#  CFLAGS="$CFLAGS -D__STDC_CONSTANT_MACROS"
-#  CXXFLAGS="$CXXFLAGS -D__STDC_CONSTANT_MACROS"
-  [ $NOEXTRACT -eq 1 ] || cmake . \
+  cd OpenSceneGraph-OpenSceneGraph-${pkgver}/build
+  cmake \
     -DCMAKE_INSTALL_PREFIX=/usr \
-    -DCMAKE_BUILD_TYPE=Release
+    -DCMAKE_BUILD_TYPE=Release \
+  ..
   make
 }
 
 package() {
-  cd OpenSceneGraph-OpenSceneGraph-$pkgver
-  make DESTDIR="$pkgdir" install
-  install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-  [ -d "$pkgdir/usr/lib64" ] && mv "$pkgdir/usr/lib64" "$pkgdir/usr/lib" || true
+  cd OpenSceneGraph-OpenSceneGraph-${pkgver}/build
+  make DESTDIR="${pkgdir}" install
+  install -Dm 644 ../LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  mv "${pkgdir}/usr/lib64" "${pkgdir}/usr/lib"
 }
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list