Package Details: libsndfile-git 1.2.0.r19.gd97f4666-2

Git Clone URL: https://aur.archlinux.org/libsndfile-git.git (read-only, click to copy)
Package Base: libsndfile-git
Description: A C library for reading and writing files containing sampled sound
Upstream URL: https://libsndfile.github.io/libsndfile/
Licenses: LGPL
Conflicts: libsndfile
Provides: libsndfile, libsndfile.so
Submitter: Chocobo1
Maintainer: Chocobo1
Last Packager: Chocobo1
Votes: 1
Popularity: 0.000000
First Submitted: 2017-08-12 12:06 (UTC)
Last Updated: 2023-06-13 18:47 (UTC)

Dependencies (19)

Required by (442)

Sources (1)

Latest Comments

MarsSeed commented on 2023-06-13 18:57 (UTC)

Thank you, @Chocobo1.

MarsSeed commented on 2023-06-13 17:52 (UTC)

Please enable lame and mpg123 support as in repo package.

Chocobo1 commented on 2022-10-01 05:10 (UTC)

The package seems to be a bit broken

Fixed.

Pinky commented on 2022-09-30 22:34 (UTC)

The package seems to be a bit broken, after few tries to fix the existing one, I have actually more or less synced the structure with upstream libsndfile package. Patch is bellow.

diff --git a/PKGBUILD b/PKGBUILD
index 459d220..9fd2d6b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,45 +1,54 @@
 # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

 pkgname=libsndfile-git
-pkgver=1.1.0beta1.r11.g110e26d9
+_gitname=libsndfile
+pkgver=1.1.0.r30.g005a36b4
 pkgrel=1
-pkgdesc="C library for reading and writing files containing sampled sound"
-arch=('i686' 'x86_64')
+pkgdesc="A C library for reading and writing files containing sampled audio data"
+arch=(x86_64)
 url="https://libsndfile.github.io/libsndfile/"
-license=('LGPL')
-depends=('glibc' 'alsa-lib' 'flac' 'sqlite' 'libogg' 'libvorbis')
-makedepends=('git' 'autogen')
+license=(LGPL2.1)
+depends=(glibc opus speex)
+makedepends=(alsa-lib cmake flac git libogg libvorbis python sqlite)
 optdepends=('alsa-lib: for sndfile-play')
 provides=('libsndfile' 'libsndfile.so')
 conflicts=('libsndfile')
-options=('staticlibs')
+options=(debug staticlibs)
 source=("git+https://github.com/erikd/libsndfile.git")
 sha256sums=('SKIP')


 pkgver() {
-  cd "libsndfile"
+  cd "$srcdir/$_gitname"

   git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
 }

 build() {
-  cd "libsndfile"
-
-  ./autogen.sh
-  ./configure \
-    --prefix="/usr"
-  make
+  # tests can only be built with static libs
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_BUILD_TYPE=None \
+        -Wno-dev \
+        -B build-test \
+        -S $_gitname
+  make VERBOSE=1 -C build-test
+
+  cmake -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_BUILD_TYPE=None \
+        -DBUILD_SHARED_LIBS=ON \
+        -Wno-dev \
+        -B build \
+        -S $_gitname
+  make VERBOSE=1 -C build
 }

 check() {
-  cd "libsndfile"
-
-  make check
+  make test -C build-test
 }

 package() {
-  cd "libsndfile"
+  depends+=(libFLAC.so libogg.so libvorbis.so libvorbisenc.so)

-  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install -C build
+  install -vDm 644 $_gitname/{AUTHORS,ChangeLog,README} -t "$pkgdir/usr/share/doc/$_gitname"
 }

Chocobo1 commented on 2021-08-21 07:51 (UTC)

please add 'libsndfile.so' to the provides, Thank You.

Done.

EndlessEden commented on 2021-08-20 21:50 (UTC)

please add 'libsndfile.so' to the provides, Thank You.