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

Eric Bélanger eric at nymeria.archlinux.org
Fri Oct 25 00:37:52 UTC 2013


    Date: Friday, October 25, 2013 @ 02:37:51
  Author: eric
Revision: 197280

upgpkg: physfs 2.0.3-2

Rebuild without static libraries

Modified:
  physfs/trunk/PKGBUILD

----------+
 PKGBUILD |   11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-10-25 00:22:10 UTC (rev 197279)
+++ PKGBUILD	2013-10-25 00:37:51 UTC (rev 197280)
@@ -3,7 +3,7 @@
 
 pkgname=physfs
 pkgver=2.0.3
-pkgrel=1
+pkgrel=2
 pkgdesc="A library to provide abstract access to various archives"
 arch=('i686' 'x86_64')
 url="http://icculus.org/physfs/"
@@ -14,8 +14,9 @@
 sha1sums=('327308c777009a41bbabb9159b18c4c0ac069537')
 
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  cmake . -DCMAKE_BUILD_TYPE=Release \
+  mkdir build
+  cd build
+  cmake ../${pkgname}-${pkgver} -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DPHYSFS_BUILD_TEST=OFF -DPHYSFS_BUILD_WX_TEST=OFF
   make all docs
@@ -22,7 +23,7 @@
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd build
   make DESTDIR="${pkgdir}" install
   install -d "${pkgdir}"/usr/share/{doc/physfs,man/man3}
   install -m644 docs/html/* "${pkgdir}/usr/share/doc/physfs"
@@ -32,5 +33,5 @@
     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"
+  install -D -m644 ../${pkgname}-${pkgver}/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }




More information about the arch-commits mailing list