mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-23 17:33:34 +08:00
850fefed49
This has been scripted, some might have been missed some PKGBUILDS might be broken, so please chock when building.
37 lines
978 B
Bash
37 lines
978 B
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
_pkgbasename=libsamplerate
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=0.1.8
|
|
pkgrel=1
|
|
pkgdesc="Secret Rabbit Code - aka Sample Rate Converter for audio (32-bit)"
|
|
arch=('x86_64')
|
|
url="http://www.mega-nerd.com/SRC/index.html"
|
|
license=('GPL')
|
|
depends=('lib32-libsndfile' $_pkgbasename=$pkgver)
|
|
makedepedns=('gcc-multilib')
|
|
options=('!libtool')
|
|
source=(http://www.mega-nerd.com/SRC/libsamplerate-${pkgver}.tar.gz)
|
|
md5sums=('1c7fb25191b4e6e3628d198a66a84f47')
|
|
|
|
build() {
|
|
cd ${srcdir}/${_pkgbasename}-${pkgver}
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
./configure --prefix=/usr --libdir=/usr/lib32
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${_pkgbasename}-${pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
|
}
|