[arch-commits] Commit in physfs/repos (community-x86_64 community-x86_64/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Sun Mar 24 10:38:39 UTC 2019


    Date: Sunday, March 24, 2019 @ 10:38:38
  Author: arojas
Revision: 443316

archrelease: copy trunk to community-x86_64

Added:
  physfs/repos/community-x86_64/
  physfs/repos/community-x86_64/PKGBUILD
    (from rev 443315, physfs/trunk/PKGBUILD)

----------+
 PKGBUILD |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

Copied: physfs/repos/community-x86_64/PKGBUILD (from rev 443315, physfs/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2019-03-24 10:38:38 UTC (rev 443316)
@@ -0,0 +1,36 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=physfs
+pkgver=3.0.1
+pkgrel=1
+pkgdesc="A library to provide abstract access to various archives"
+arch=('x86_64')
+url="http://icculus.org/physfs/"
+license=('ZLIB')
+depends=('zlib')
+makedepends=('cmake' 'doxygen')
+source=(http://icculus.org/physfs/downloads/${pkgname}-${pkgver}.tar.bz2)
+sha1sums=('9959a7acad0aa30d1a86d3a418e61155b0ac533c')
+
+build() {
+  mkdir build
+  cd build
+  cmake ../${pkgname}-${pkgver} -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DPHYSFS_BUILD_TEST=OFF
+  make all docs
+}
+
+package() {
+  cd build
+  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 remove url ; do
+    mv "${pkgdir}/usr/share/man/man3/$i.3" "${pkgdir}/usr/share/man/man3/PHYSFS_$i.3"
+  done
+
+  install -D -m644 ../${pkgname}-${pkgver}/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list