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

Eric Bélanger eric at archlinux.org
Sat Jun 26 00:20:05 UTC 2010


    Date: Friday, June 25, 2010 @ 20:20:04
  Author: eric
Revision: 84070

upgpkg: physfs 2.0.1-1
Upstream update, Added man pages and docs

Modified:
  physfs/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++--------------
 1 file changed, 26 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-06-25 21:19:32 UTC (rev 84069)
+++ PKGBUILD	2010-06-26 00:20:04 UTC (rev 84070)
@@ -3,24 +3,36 @@
 # Contributor: Bjorn Lindeijer <bjorn lindeijer nl>
 
 pkgname=physfs
-pkgver=2.0.0
-pkgrel=2
-pkgdesc="A library to provide abstract access to various archives."
+pkgver=2.0.1
+pkgrel=1
+pkgdesc="A library to provide abstract access to various archives"
 arch=('i686' 'x86_64')
 url="http://icculus.org/physfs/"
 license=('zlib')
-depends=('zlib')
-makedepends=('cmake')
+depends=('zlib' 'readline')
+makedepends=('cmake' 'doxygen')
 source=(http://icculus.org/physfs/downloads/${pkgname}-${pkgver}.tar.gz)
-md5sums=('cfc53e0c193914c9c5ab522e58737373')
-sha1sums=('3cfa291a82f2b0cf15b205efcf8bf53c0b54c92c')
+md5sums=('df00465fcfa80e87f718961c6dd6b928')
+sha1sums=('1e291e8717ce3bb921b74416ec7cbcf212efcaa1')
 
 build() {
-    cd "${srcdir}/${pkgname}-${pkgver}"
-    export CFLAGS="$CFLAGS -fno-strict-aliasing"
-    export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
-    cmake . -DCMAKE_INSTALL_PREFIX=/usr || return 1
-    make || return 1
-    make DESTDIR="${pkgdir}" install || return 1
-    install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  export CFLAGS="$CFLAGS -fno-strict-aliasing"
+  export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
+  cmake . -DCMAKE_INSTALL_PREFIX=/usr
+  make all docs
 }
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  install -d "${pkgdir}"/usr/share/{doc/physfs,man/man3}
+  install -m644 docs/html/* "${pkgdir}/usr/share/doc/physfs"
+  install -m644 docs/man/man3/* "${pkgdir}/usr/share/man/man3"
+
+  for i in author Deinit description extension Free Init major Malloc minor opaque patch Realloc url ; do
+    mv "${pkgdir}/usr/share/man/man3/$i.3" "${pkgdir}/usr/share/man/man3/PHYSFS_$i.3"
+  done
+
+  install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}




More information about the arch-commits mailing list