opt/flac/Pkgfile

25 lines
650 B
Plaintext
Raw Normal View History

2012-06-20 21:58:16 +02:00
# Description: Free Lossless Audio Codec.
# URL: https://xiph.org/flac/
2014-11-10 13:25:50 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2006-02-23 16:26:10 +01:00
# Depends on: libogg
name=flac
2022-10-22 16:42:55 +02:00
version=1.4.2
2022-03-05 17:22:09 +01:00
release=1
2022-10-22 16:42:55 +02:00
source=(https://github.com/xiph/flac/releases/download/$version/flac-$version.tar.xz)
2022-09-11 17:06:14 +02:00
2006-02-23 16:26:10 +01:00
build() {
2022-03-05 18:12:16 +01:00
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
2022-03-08 11:50:27 +01:00
-D BUILD_SHARED_LIBS=ON \
2022-03-05 18:12:16 +01:00
-D BUILD_EXAMPLES=OFF \
-D BUILD_TESTING=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
2006-02-23 16:26:10 +01:00
}