Browse Source

[trunk] -> [testing] 'libsndfile-1.0.31-1' add

master
Nathan Owens 10 months ago
parent
commit
59b80c1537
Signed by: ndowens GPG Key ID: DC5A6F8092641E2D
  1. 50
      libsndfile/trunk/PKGBUILD
  2. 54
      libsndfile/x86_64/testing/PKGBUILD

50
libsndfile/trunk/PKGBUILD

@ -1,40 +1,54 @@
# Maintainer: David Runge <dvzrv@archlinux.org>
pkgname=libsndfile
pkgver=1.0.28
pkgrel=3
pkgdesc="A C library for reading and writing files containing sampled sound"
pkgver=1.0.31
pkgrel=1
pkgdesc="A C library for reading and writing files containing sampled audio data"
arch=('x86_64')
url="http://www.mega-nerd.com/libsndfile"
url="https://libsndfile.github.io/libsndfile/"
license=('LGPL2.1')
depends=('glibc' 'libFLAC.so' 'libogg' 'libvorbis.so' 'libvorbisenc.so')
makedepends=('alsa-lib')
depends=('glibc' 'opus' 'speex')
makedepends=('alsa-lib' 'cmake' 'flac' 'libogg' 'libvorbis' 'python' 'sqlite')
optdepends=('alsa-lib: for sndfile-play')
provides=('libsndfile.so')
source=("http://www.mega-nerd.com/libsndfile/files/$pkgname-$pkgver.tar.gz"{,.asc})
sha512sums=('890731a6b8173f714155ce05eaf6d991b31632c8ab207fbae860968861a107552df26fcf85602df2e7f65502c7256c1b41735e1122485a3a07ddb580aa83b57f'
source=("https://github.com/${pkgname}/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2"{,.sig})
sha512sums=('62202092e5cac6346fd3c0a977380e9bf888fc59d08c9c9707dc254a8ef6ed6356da2ab0430bb970c7b06ba5bb1dafa5d7b0fe13898834c1fe4acb16f409f0e1'
'SKIP')
validpgpkeys=('6A91A5CF22C24C99A35E013FCFDCF91FB242ACED') # Erik de Castro Lopo <erikd@mega-nerd.com>
prepare() {
cd "$pkgname-$pkgver"
autoreconf -vfi
}
b2sums=('33e3c3d111427e829d8233aec52c227188834936839da9a04cf1ea5d2595d6a3127e7ce86d7686ca0336cca2017e6e2466845c27c7fc399efae34a0902316e41'
'SKIP')
validpgpkeys=('6A91A5CF22C24C99A35E013FCFDCF91FB242ACED' # Erik de Castro Lopo <erikd@mega-nerd.com>
'9B1CFD2E92239C4B288E025F9D0D1F1CCB35FF8C' # evpobr evpobr@gmail.com
'31D95CAB6D80D262244A1750A47620E801E47E95' # David Seifert soap@gentoo.org
)
build() {
cd "$pkgname-$pkgver"
./configure --prefix=/usr --disable-sqlite
make
# tests can only be built with static libs
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE='None' \
-Wno-dev \
-B build-test \
-S .
make VERBOSE=1 -C build-test
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE='None' \
-DBUILD_SHARED_LIBS=ON \
-Wno-dev \
-B build \
-S .
make VERBOSE=1 -C build
}
check() {
cd "$pkgname-$pkgver"
make -k check
make test -C build-test
}
package() {
depends+=('libFLAC.so' 'libogg.so' 'libvorbis.so' 'libvorbisenc.so')
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install -C build
install -vDm 644 {AUTHORS,ChangeLog,NEWS,README} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
}

54
libsndfile/x86_64/testing/PKGBUILD

@ -0,0 +1,54 @@
# Maintainer: David Runge <dvzrv@archlinux.org>
pkgname=libsndfile
pkgver=1.0.31
pkgrel=1
pkgdesc="A C library for reading and writing files containing sampled audio data"
arch=('x86_64')
url="https://libsndfile.github.io/libsndfile/"
license=('LGPL2.1')
depends=('glibc' 'opus' 'speex')
makedepends=('alsa-lib' 'cmake' 'flac' 'libogg' 'libvorbis' 'python' 'sqlite')
optdepends=('alsa-lib: for sndfile-play')
provides=('libsndfile.so')
source=("https://github.com/${pkgname}/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2"{,.sig})
sha512sums=('62202092e5cac6346fd3c0a977380e9bf888fc59d08c9c9707dc254a8ef6ed6356da2ab0430bb970c7b06ba5bb1dafa5d7b0fe13898834c1fe4acb16f409f0e1'
'SKIP')
b2sums=('33e3c3d111427e829d8233aec52c227188834936839da9a04cf1ea5d2595d6a3127e7ce86d7686ca0336cca2017e6e2466845c27c7fc399efae34a0902316e41'
'SKIP')
validpgpkeys=('6A91A5CF22C24C99A35E013FCFDCF91FB242ACED' # Erik de Castro Lopo <erikd@mega-nerd.com>
'9B1CFD2E92239C4B288E025F9D0D1F1CCB35FF8C' # evpobr evpobr@gmail.com
'31D95CAB6D80D262244A1750A47620E801E47E95' # David Seifert soap@gentoo.org
)
build() {
cd "$pkgname-$pkgver"
# tests can only be built with static libs
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE='None' \
-Wno-dev \
-B build-test \
-S .
make VERBOSE=1 -C build-test
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE='None' \
-DBUILD_SHARED_LIBS=ON \
-Wno-dev \
-B build \
-S .
make VERBOSE=1 -C build
}
check() {
cd "$pkgname-$pkgver"
make test -C build-test
}
package() {
depends+=('libFLAC.so' 'libogg.so' 'libvorbis.so' 'libvorbisenc.so')
cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install -C build
install -vDm 644 {AUTHORS,ChangeLog,NEWS,README} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
}
Loading…
Cancel
Save