compat-32/libsamplerate-32/Pkgfile

25 lines
726 B
Plaintext
Raw Normal View History

2023-09-16 10:25:22 +02:00
# Description: Sound sample rate conversion library
2021-01-31 10:48:30 +01:00
# URL: https://libsndfile.github.io/libsamplerate/
2023-09-16 10:25:22 +02:00
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2021-09-10 21:06:52 +02:00
# Depends on: cmake libsndfile-32
2021-01-31 10:48:30 +01:00
name=libsamplerate-32
2021-09-10 21:06:52 +02:00
version=0.2.2
2021-01-31 10:48:30 +01:00
release=1
2021-09-10 21:06:52 +02:00
source=(https://github.com/libsndfile/libsamplerate/releases/download/$version/libsamplerate-$version.tar.xz)
2021-01-31 10:48:30 +01:00
build() {
2023-09-16 10:25:22 +02:00
cmake -S libsamplerate-$version -B build -G Ninja \
2021-09-10 21:06:52 +02:00
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib32 \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D BUILD_SHARED_LIBS=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
2021-01-31 10:48:30 +01:00
rm -r $PKG/usr/share/doc $PKG/usr/include
rmdir $PKG/usr/share
}