mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
pkgname=physfs
|
|
pkgver=3.0.1
|
|
pkgrel=1
|
|
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/$pkgname/downloads/$pkgname-$pkgver.tar.bz2)
|
|
sha256sums=('b77b9f853168d9636a44f75fca372b363106f52d789d18a2f776397bf117f2f1')
|
|
|
|
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"
|
|
}
|