desktop/physfs/PKGBUILD

35 lines
1.1 KiB
Bash
Raw Normal View History

pkgname=physfs
2018-10-22 11:42:25 +08:00
pkgver=3.0.1
pkgrel=1
pkgdesc="A library to provide abstract access to various archives."
2017-01-16 07:12:54 +08:00
arch=('x86_64')
2018-10-22 11:42:25 +08:00
url="https://icculus.org/physfs/"
license=('ZLIB')
2018-10-22 11:42:25 +08:00
depends=('zlib')
makedepends=('cmake' 'doxygen')
source=(https://icculus.org/$pkgname/downloads/$pkgname-$pkgver.tar.bz2)
sha256sums=('b77b9f853168d9636a44f75fca372b363106f52d789d18a2f776397bf117f2f1')
build() {
2018-10-22 11:42:25 +08:00
mkdir build
cd build
cmake ../${pkgname}-${pkgver} -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
2018-10-22 11:42:25 +08:00
-DPHYSFS_BUILD_TEST=OFF
make all docs
}
package() {
2018-10-22 11:42:25 +08:00
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"
2018-10-22 11:42:25 +08:00
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
2018-10-22 11:42:25 +08:00
install -D -m644 ../${pkgname}-${pkgver}/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}