Date: Friday, October 7, 2022 @ 09:52:49
  Author: arodseth
Revision: 1323789

upgpkg: physfs 3.2.0-1

Modified:
  physfs/trunk/PKGBUILD

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++------------------------
 1 file changed, 27 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-07 09:15:39 UTC (rev 1323788)
+++ PKGBUILD    2022-10-07 09:52:49 UTC (rev 1323789)
@@ -1,34 +1,37 @@
-# Maintainer:
+# Maintainer: Alexander F. Rødseth <[email protected]>
 # Contributor: Eric Bélanger <[email protected]>
 
 pkgname=physfs
-pkgver=3.0.2
-pkgrel=2
-pkgdesc="A library to provide abstract access to various archives"
-arch=('x86_64')
-url="https://icculus.org/physfs/";
-license=('ZLIB')
-depends=('zlib')
-makedepends=('cmake' 'doxygen')
-source=(https://icculus.org/physfs/downloads/${pkgname}-${pkgver}.tar.bz2)
-sha1sums=('6a15c458898d0570101d8f173201cde9ced78df7')
+pkgver=3.2.0
+pkgrel=1
+pkgdesc='Portable and flexible I/O abstraction for archives'
+arch=(x86_64)
+url='https://icculus.org/physfs'
+license=(ZLIB)
+makedepends=(cmake doxygen git ninja)
+source=('git+https://github.com/icculus/physfs#commit=eb3383b532c5f74bfeb42ec306ba2cf80eed988c')
 # tag: release-3.2.0
+b2sums=(SKIP)
 
 build() {
-  cmake -B build -S $pkgname-$pkgver \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DPHYSFS_BUILD_TEST=OFF
-  make -C build all docs
+  cmake \
+    -B build \
+    -D CMAKE_BUILD_TYPE=Release \
+    -D CMAKE_INSTALL_PREFIX=/usr \
+    -D PHYSFS_BUILD_TEST=OFF \
+    -G Ninja \
+    -S $pkgname
+  ninja -C build all docs
 }
 
 package() {
-  make DESTDIR="${pkgdir}" install -C build
-  install -d "${pkgdir}"/usr/share/{doc/physfs,man/man3}
-  install -m644 build/docs/html/* "${pkgdir}/usr/share/doc/physfs"
-  install -m644 build/docs/man/man3/* "${pkgdir}/usr/share/man/man3"
-
-  for i in author Deinit deprecated description extension Free Init major 
Malloc minor opaque patch Realloc remove url ; do
-    mv "${pkgdir}"/usr/share/man/man3/{,PHYSFS_}$i.3
+  DESTDIR="$pkgdir" ninja -C build install
+  install -d "$pkgdir/usr/share/"{doc/physfs,man/man3}
+  install -m644 build/docs/html/* "$pkgdir/usr/share/doc/physfs"
+  install -m644 build/docs/man/man3/* "$pkgdir/usr/share/man/man3"
+  for name in Deinit Free Init Malloc Realloc author deprecated description \
+    extension major minor opaque patch remove url; do
+    mv "$pkgdir/usr/share/man/man3/"{,PHYSFS_}$name.3
   done
-
-  install -D -m644 ${pkgname}-${pkgver}/LICENSE.txt 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -D -m644 $pkgname/LICENSE.txt \
+    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

Reply via email to