summaryrefslogtreecommitdiff
path: root/flac-32/Pkgfile
blob: bad35d21c3fb4a1ead07a37227fe6fb204d05a12 (plain)
    1 # Description: Free Lossless Audio Codec.
    2 # URL: https://xiph.org/flac/
    3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
    4 # Depends on: libogg-32
    5 
    6 name=flac-32
    7 version=1.4.2
    8 release=1
    9 source=(https://downloads.xiph.org/releases/flac/flac-$version.tar.xz)
   10 
   11 build() {
   12 	cmake -S flac-$version -B build -G Ninja \
   13 		-D CMAKE_INSTALL_PREFIX=/usr \
   14 		-D CMAKE_INSTALL_LIBDIR=lib32 \
   15 		-D CMAKE_BUILD_TYPE=Release \
   16 		-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   17 		-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   18 		-D BUILD_SHARED_LIBS=ON \
   19 		-D BUILD_EXAMPLES=OFF \
   20 		-D BUILD_TESTING=OFF \
   21 		-Wno-dev
   22 	cmake --build build
   23 	DESTDIR=$PKG cmake --install build
   24 
   25 	rm -r $PKG/usr/{bin,include,share/man}
   26 	rmdir $PKG/usr/share
   27 }

Generated by cgit