mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
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=libsndfile
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=1.0.21
|
|
pkgrel=1
|
|
pkgdesc="A C library for reading and writing files containing sampled sound (32-bit)"
|
|
arch=('x86_64')
|
|
url="http://www.mega-nerd.com/libsndfile"
|
|
license=('LGPL')
|
|
depends=('lib32-flac>=1.2.1' 'lib32-libvorbis' $_pkgbasename)
|
|
makedepends=('lib32-alsa-lib' 'gcc-multilib')
|
|
options=('!libtool')
|
|
source=(http://www.mega-nerd.com/libsndfile/files/${_pkgbasename}-${pkgver}.tar.gz)
|
|
md5sums=('880a40ec636ab2185b97f8927299b292')
|
|
|
|
build() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
export GETCONF="getconf -v POSIX_V7_ILP32_OFFBIG"
|
|
export GETCONF_DIR="/usr/lib32/getconf"
|
|
|
|
./configure --prefix=/usr --disable-sqlite --libdir=/usr/lib32
|
|
make -C src
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
make -C src DESTDIR="${pkgdir}" install
|
|
make DESTDIR="$pkgdir" install-pkgconfigDATA
|
|
|
|
rm -rf "$pkgdir/usr/include"
|
|
}
|