blob: 2bf2a41af646679e4ea5e2a18c02d8c4edb16d96 (
plain)
1 # Description: Library to provide abstract access to various archives.
2 # URL: http://icculus.org/physfs/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: cmake readline
5
6 name=physfs
7 version=3.2.0
8 release=1
9 source=(https://github.com/icculus/physfs/archive/release-$version/$name-$version.tar.gz)
10
11 build() {
12 cmake -S $name-release-$version -B build -G Ninja $PKGMK_PHYSFS \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_INSTALL_LIBDIR=lib \
15 -D CMAKE_BUILD_TYPE=Release \
16 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
17 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
18 -D PHYSFS_BUILD_TEST=OFF \
19 -Wno-dev
20
21 cmake --build build
22 DESTDIR=$PKG cmake --install build
23 }
|