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

andyrtr at archlinux.org andyrtr at archlinux.org
Sun May 2 13:32:32 UTC 2010


    Date: Sunday, May 2, 2010 @ 09:32:32
  Author: andyrtr
Revision: 79253

upgpkg: hdf5 1.8.4_patch1-1
new version 1.8.4-patch1; #19184; enable -O0 optimization taken from Fedora; disable useless space wasting static libs

Modified:
  hdf5/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-05-02 13:04:43 UTC (rev 79252)
+++ PKGBUILD	2010-05-02 13:32:32 UTC (rev 79253)
@@ -4,23 +4,25 @@
 # Contributor: Tom K <tomk at runbox.com>
 
 pkgname=hdf5
-pkgver=1.8.4
-pkgrel=3
+pkgver=1.8.4_patch1
+pkgrel=1
 arch=('i686' 'x86_64')
 pkgdesc="General purpose library and file format for storing scientific data"
 url="http://www.hdfgroup.org/HDF5/"
 license=('custom')
 depends=('zlib' 'sh')
 makedepends=('time')
-source=(ftp://ftp.hdfgroup.org/HDF5/current/src/${pkgname}-${pkgver}.tar.gz)
-md5sums=('971cc81ef10f50d2bb63cd6879fca7bc')
+source=(ftp://ftp.hdfgroup.org/HDF5/current/src/${pkgname}-${pkgver/_/-}.tar.bz2)
+md5sums=('b19f4dfbf654a2af3653c492fc1c7513')
 options=('!libtool')
 
 build() {
-  cd $srcdir/${pkgname}-${pkgver}
-  unset CFLAGS
-  unset CXXFLAGS
-  ./configure --prefix=/usr \
+  cd $srcdir/${pkgname}-${pkgver/_/-}
+#  unset CFLAGS
+#  unset CXXFLAGS
+  export CFLAGS="${CFLAGS/O2/O0}"
+  export CXXFLAGS="${CFLAGS}"
+  ./configure --prefix=/usr --disable-static \
     --enable-hl \
     --enable-threadsafe \
     --enable-linux-lfs \
@@ -33,7 +35,7 @@
   make -j1 prefix=$pkgdir/usr install || return 1
 
   install -d -m755 $pkgdir/usr/share/licenses/${pkgname} || return 1
-  install -m644 $srcdir/${pkgname}-${pkgver}/COPYING \
+  install -m644 $srcdir/${pkgname}-${pkgver/_/-}/COPYING \
           $pkgdir/usr/share/licenses/${pkgname}/LICENSE || return 1
 }
 




More information about the arch-commits mailing list