Files
extra/physfs/PKGBUILD
2025-06-22 20:39:04 -05:00

34 lines
1.1 KiB
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=physfs
pkgver=3.0.2
pkgrel=1
pkgdesc='A library to provide abstract access to various archives'
arch=('i686' 'x86_64')
url='https://icculus.org/physfs/'
license=('zlib')
depends=('zlib')
makedepends=('cmake' 'doxygen' 'quilt')
source=(https://icculus.org/physfs/downloads/${pkgname}-${pkgver}.tar.bz2)
sha512sums=('4024b6c3348e0b6fc1036aac330192112dfe17de3e3d14773be9f06e9a062df5a1006869f21162b4e0b584989f463788a35e64186b1913225c073fea62754472')
build() {
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DPHYSFS_BUILD_TEST=OFF
make -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
done
install -D -m644 ${pkgname}-${pkgver}/LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
}