From 1e78660c7ff8deb087070f69962d369e0465f639 Mon Sep 17 00:00:00 2001 From: John McQuah Date: Fri, 3 Mar 2023 13:26:01 -0500 Subject: [PATCH] libsoxr: adopted, cleaned up Pkgfile --- libsoxr/.footprint | 1 - libsoxr/.signature | 6 +++--- libsoxr/Pkgfile | 15 +++++++-------- 3 files changed, 10 insertions(+), 12 deletions(-) diff --git a/libsoxr/.footprint b/libsoxr/.footprint index a2af51b1c..d1821dd57 100644 --- a/libsoxr/.footprint +++ b/libsoxr/.footprint @@ -12,4 +12,3 @@ lrwxrwxrwx root/root usr/lib/libsoxr.so.0 -> libsoxr.so.0.1.2 drwxr-xr-x root/root usr/lib/pkgconfig/ -rw-r--r-- root/root usr/lib/pkgconfig/soxr-lsr.pc -rw-r--r-- root/root usr/lib/pkgconfig/soxr.pc -drwxr-xr-x root/root usr/share/ diff --git a/libsoxr/.signature b/libsoxr/.signature index 48bc4d05e..b97b437e6 100644 --- a/libsoxr/.signature +++ b/libsoxr/.signature @@ -1,5 +1,5 @@ untrusted comment: verify with /etc/ports/contrib.pub -RWSagIOpLGJF36tGq9F//kbgp+Rdq7r3mUwdNZV9EoDbmd796RRjrl4GGsiCOnGdYhJzn3sMWZpK6q84kjFueOdSFGVC2vC0tAQ= -SHA256 (Pkgfile) = 28dbe5fa34c1803dd50498198190d0b60b8762a98d9acdc63b5866a1000b1c01 -SHA256 (.footprint) = e3df6a7a6c7e67eda43a1601493e29d219747e75b60864d8d2d5910c92a6e128 +RWSagIOpLGJF377t+441ZeU4mO+dogp1fmX/Viy+WVXRDf42J5RC5opKxP5npMp3KZaiwiwhvHZcz7fhyNLF8SWwG5aJCoDA6Q8= +SHA256 (Pkgfile) = c673fb7ae6ea9654ead3d3bde6e1ff70db95afa6fe8db71426554970259c75c8 +SHA256 (.footprint) = 108ce942e2b00da2271bd8df3c352c4d2ede9e46a0b2c8392702b99d8a8953bb SHA256 (soxr-0.1.3-Source.tar.xz) = b111c15fdc8c029989330ff559184198c161100a59312f5dc19ddeb9b5a15889 diff --git a/libsoxr/Pkgfile b/libsoxr/Pkgfile index 00b6f2963..46c841110 100644 --- a/libsoxr/Pkgfile +++ b/libsoxr/Pkgfile @@ -1,16 +1,15 @@ # Description: High quality, one-dimensional sample-rate conversion library # URL: https://sourceforge.net/p/soxr/wiki/Home/ -# Maintainer: Danny Rawlins, crux at romster dot me -# Depends on: cmake ffmpeg +# Maintainer: John McQuah, jmcquah at disroot dot org +# Depends on: ffmpeg name=libsoxr version=0.1.3 -release=1 +release=2 source=(https://downloads.sourceforge.net/soxr/soxr-$version-Source.tar.xz) build() { - [[ -e /usr/bin/ninja ]] && PKGMK_SOXR+=' -G Ninja' - cmake -S soxr-$version-Source -B build $PKGMK_SOXR \ + cmake -S soxr-$version-Source -B build -G Ninja \ -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ @@ -23,8 +22,8 @@ build() { -D WITH_PFFFT=ON \ -Wno-dev - cmake --build build - DESTDIR=$PKG cmake --install build + ninja -C build -j ${JOBS:-1} + DESTDIR=$PKG ninja -C build install - rm -r $PKG/usr/share/doc + rm -r $PKG/usr/share }