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

Alexander Rødseth arodseth at archlinux.org
Tue May 29 09:38:20 UTC 2018


    Date: Tuesday, May 29, 2018 @ 09:38:20
  Author: arodseth
Revision: 333162

upgpkg: ode 0.15.2-2

Modified:
  ode/trunk/PKGBUILD

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++--------------------
 1 file changed, 29 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-29 09:37:24 UTC (rev 333161)
+++ PKGBUILD	2018-05-29 09:38:20 UTC (rev 333162)
@@ -1,38 +1,47 @@
 # $Id$
-# Maintainer: Giovanni Scafora <giovanni at archlinux.org>
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Giovanni Scafora <giovanni at archlinux.org>
 # Contributor: Adam Griffiths <adam_griffithsAATTdart.net.au>
 
 pkgname=ode
 pkgver=0.15.2
-pkgrel=1
-pkgdesc="An open source, high performance library for simulating rigid body dynamics"
+pkgrel=2
+pkgdesc='High performance library for simulating rigid body dynamics'
 arch=('x86_64')
-url="https://bitbucket.org/odedevs/ode/"
+url='https://bitbucket.org/odedevs/ode/'
 license=('LGPL' 'BSD')
-depends=('gcc-libs' 'bash')
-source=("https://bitbucket.org/odedevs/${pkgname}/downloads/${pkgname}-${pkgver}.tar.gz")
+source=("https://bitbucket.org/odedevs/$pkgname/downloads/$pkgname-$pkgver.tar.gz")
 sha256sums=('2eaebb9f8b7642815e46227956ca223806f666acd11e31708bd030028cf72bac')
 
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  ./bootstrap
+}
+
 build() {
-  cd ${pkgname}-${pkgver}
+  cd "$pkgname-$pkgver"
 
-  ./bootstrap
-  ./configure --prefix=/usr \
-              --enable-shared \
-              --enable-libccd \
-              --enable-double-precision
+  export CXXFLAGS='-w -Ofast -fpermissive'
+  ./configure \
+    --prefix=/usr \
+    --enable-shared \
+    --enable-double-precision \
+    --enable-libccd \
+    --enable-ou \
+    --enable-silent-rules
   make
 }
 
 package() {
-  cd ${pkgname}-${pkgver}
+  cd "$pkgname-$pkgver"
 
-  make DESTDIR=${pkgdir}/ install
+  DESTDIR="$pkgdir" make install
 
-  install -Dm0644 ${srcdir}/${pkgname}-${pkgver}/ou/LICENSE-BSD.TXT \
-                  ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-BSD.TXT
-  install -Dm0644 ${srcdir}/${pkgname}-${pkgver}/GIMPACT/GIMPACT-LICENSE-BSD.TXT \
-                  ${pkgdir}/usr/share/licenses/${pkgname}/GIMPACT-LICENSE-BSD.TXT
-  install -Dm0644 ${srcdir}/${pkgname}-${pkgver}/libccd/BSD-LICENSE \
-                  ${pkgdir}/usr/share/licenses/${pkgname}/BSD-LICENSE
+  install -Dm644 ou/LICENSE-BSD.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-BSD.TXT"
+  install -Dm644 GIMPACT/GIMPACT-LICENSE-BSD.TXT "$pkgdir/usr/share/licenses/$pkgname/GIMPACT-LICENSE-BSD.TXT"
+  install -Dm644 libccd/BSD-LICENSE "$pkgdir/usr/share/licenses/$pkgname/BSD-LICENSE"
 }
+
+# getver: bitbucket.org/odedevs/ode/downloads/?tab=tags
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list