summaryrefslogtreecommitdiff
path: root/multilib/lib32-libsndfile/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'multilib/lib32-libsndfile/PKGBUILD')
-rw-r--r--multilib/lib32-libsndfile/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/multilib/lib32-libsndfile/PKGBUILD b/multilib/lib32-libsndfile/PKGBUILD
new file mode 100644
index 000000000..3d1c36d17
--- /dev/null
+++ b/multilib/lib32-libsndfile/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 43016 2011-03-23 20:35:57Z heftig $
+# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
+
+_pkgbasename=libsndfile
+pkgname=lib32-$_pkgbasename
+pkgver=1.0.24
+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' 'lib32-libvorbis' $_pkgbasename)
+makedepends=('lib32-alsa-lib' 'gcc-multilib')
+options=('!libtool')
+source=(http://www.mega-nerd.com/libsndfile/files/${_pkgbasename}-${pkgver}.tar.gz)
+md5sums=('8f823c30c1d8d44830db6ab845d6679e')
+sha1sums=('ade2dad272b52f61bb58aca3a4004b28549ee0f8')
+
+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"
+}