[arch-commits] Commit in libsamplerate/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Thu Feb 4 21:07:32 UTC 2021
Date: Thursday, February 4, 2021 @ 21:07:31
Author: dvzrv
Revision: 407491
upgpkg: libsamplerate 0.2.1-1: Upgrade to 0.2.1.
Switch to new github organization for url and source.
The original author transferred the repository to the org:
https://github.com/libsndfile/libsamplerate/issues/39
Add PGP public key of current maintainer.
Switch to cmake as build system.
Modified:
libsamplerate/trunk/PKGBUILD
----------+
PKGBUILD | 41 +++++++++++++++++++++--------------------
1 file changed, 21 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-04 20:05:35 UTC (rev 407490)
+++ PKGBUILD 2021-02-04 21:07:31 UTC (rev 407491)
@@ -2,42 +2,43 @@
# Contributor: Eric Bélanger <eric at archlinux.org>
pkgname=libsamplerate
-pkgver=0.1.9
-pkgrel=3
-pkgdesc="Secret Rabbit Code - aka Sample Rate Converter for audio"
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="An audio sample rate conversion library"
arch=('x86_64')
-url="http://www.mega-nerd.com/SRC/index.html"
+url="https://libsndfile.github.io/libsamplerate/"
license=('BSD')
depends=('glibc')
-makedepends=('libsndfile.so')
+makedepends=('alsa-lib' 'cmake' 'libsndfile' 'opus')
checkdepends=('fftw')
-optdepends=('libsndfile.so: for sndfile-resample')
provides=('libsamplerate.so')
-# upstream might soonish become github (requested detached signatures):
-# https://github.com/erikd/libsamplerate/issues/39
-source=("http://www.mega-nerd.com/SRC/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('78596657963cbf06785e3e6e1190b093df71da52ca340e75bd8246a962cd79dd1c90fa5527c607cebcb296e2c1ee605015278b274e3b768f2f3fbeb0eadfb728')
+source=("https://github.com/libsndfile/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2"{,.sig})
+sha512sums=('f54f7f12c9536868d7a11fc9cbb86857505e7b75fe34cedaf0b9bfc864da6037296b3eae303a33d4c87b7fd20d96933b91ef59c8cc3d1313b9fc21654e5daa2d'
+ 'SKIP')
+b2sums=('83540f3e75cfa79cbd166f075d22cab6a63e0e057b90ac6a3760c07196cac962df7d1ca26620a9033de046e0528bee3ded2b482e8629b1ae316844b5b31f3074'
+ 'SKIP')
+validpgpkeys=('31D95CAB6D80D262244A1750A47620E801E47E95') # David Seifert soap at gentoo.org
-prepare() {
- cd "${pkgname}-${pkgver}"
- autoreconf -vfi
-}
-
build() {
cd "${pkgname}-${pkgver}"
- ./configure --prefix=/usr
- make
+ 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
}
package() {
cd "${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
- install -vDm 644 {AUTHORS,NEWS,README,ChangeLog} \
+ make DESTDIR="${pkgdir}" install -C build
+ install -vDm 644 {AUTHORS,NEWS,README.md,ChangeLog} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
More information about the arch-commits
mailing list