Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: lib32-libsamplerate 0.2.1-1: Upgrade to 0.2.1.
Browse files Browse the repository at this point in the history
Switch to new github organization for url and source.
The original author transferred the repository to the org:
libsndfile/libsamplerate#39
Add PGP public key of current maintainer.
Switch to cmake as build system.

git-svn-id: file:///srv/repos/svn-community/svn@845552 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
dvzrv authored and svntogit committed Feb 4, 2021
1 parent 8be0f0c commit 9895eba
Showing 1 changed file with 31 additions and 19 deletions.
50 changes: 31 additions & 19 deletions trunk/PKGBUILD
@@ -1,45 +1,57 @@
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Maintainer: David Runge <dvzrv@archlinux.org>

_name=libsamplerate
pkgname=lib32-libsamplerate
pkgver=0.1.9
pkgrel=3
pkgdesc="Secret Rabbit Code - aka Sample Rate Converter for audio (32-bit)"
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=('lib32-glibc' 'libsamplerate')
makedepends=('gcc-multilib' 'lib32-libsndfile')
depends=('lib32-glibc' "${_name}=${pkgver}")
makedepends=('cmake' 'lib32-alsa-lib' 'lib32-libsndfile' 'lib32-opus')
# checkdepends=('fftw')
provides=('libsamplerate.so')
source=("http://www.mega-nerd.com/SRC/${_name}-${pkgver}.tar.gz")
sha512sums=('78596657963cbf06785e3e6e1190b093df71da52ca340e75bd8246a962cd79dd1c90fa5527c607cebcb296e2c1ee605015278b274e3b768f2f3fbeb0eadfb728')
source=("https://github.com/libsndfile/${_name}/releases/download/${pkgver}/${_name}-${pkgver}.tar.bz2"{,.sig})
sha512sums=('f54f7f12c9536868d7a11fc9cbb86857505e7b75fe34cedaf0b9bfc864da6037296b3eae303a33d4c87b7fd20d96933b91ef59c8cc3d1313b9fc21654e5daa2d'
'SKIP')
b2sums=('83540f3e75cfa79cbd166f075d22cab6a63e0e057b90ac6a3760c07196cac962df7d1ca26620a9033de046e0528bee3ded2b482e8629b1ae316844b5b31f3074'
'SKIP')
validpgpkeys=('31D95CAB6D80D262244A1750A47620E801E47E95') # David Seifert soap@gentoo.org

prepare() {
mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
cd "${pkgname}-${pkgver}"
autoreconf -vfi
}
build() {
cd "${pkgname}-${pkgver}"

export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

cd "${_name}-${pkgver}"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE='None' \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_LIBDIR=lib32 \
-Wno-dev \
-B build \
-S .
make VERBOSE=1 -C build

./configure --prefix=/usr --libdir=/usr/lib32
make
}

# # requires lib32-fftw
# check() {
# cd "${pkgname}-${pkgver}"
# make -k check
# cd "${_name}-${pkgver}"
# make test -C build
# }

package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
cd "${_name}-${pkgver}"

make DESTDIR="${pkgdir}" install -C build
# remove everything that is provided by libsamplerate
rm -rfv "${pkgdir}"/usr/{include,share,bin}
install -vDm 644 {AUTHORS,NEWS,README.md,ChangeLog} \
-t "${pkgdir}/usr/share/doc/${pkgname}"
install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

0 comments on commit 9895eba

Please sign in to comment.