[arch-commits] Commit in lib32-libsndfile/repos (2 files)

2018-11-09 Thread Felix Yan via arch-commits
Date: Friday, November 9, 2018 @ 23:46:35
  Author: felixonmars
Revision: 405380

archrelease: copy trunk to multilib-staging-x86_64

Added:
  lib32-libsndfile/repos/multilib-staging-x86_64/
  lib32-libsndfile/repos/multilib-staging-x86_64/PKGBUILD
(from rev 405379, lib32-libsndfile/trunk/PKGBUILD)

--+
 PKGBUILD |   52 
 1 file changed, 52 insertions(+)

Copied: lib32-libsndfile/repos/multilib-staging-x86_64/PKGBUILD (from rev 
405379, lib32-libsndfile/trunk/PKGBUILD)
===
--- multilib-staging-x86_64/PKGBUILD(rev 0)
+++ multilib-staging-x86_64/PKGBUILD2018-11-09 23:46:35 UTC (rev 405380)
@@ -0,0 +1,52 @@
+# Maintainer: Jan Alexander Steffens (heftig) 
+
+_pkgbasename=libsndfile
+pkgname=lib32-$_pkgbasename
+pkgver=1.0.28
+pkgrel=2
+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-alsa-lib' 'lib32-flac' 'lib32-libvorbis' $_pkgbasename)
+checkdepends=('python2')
+makedepends=('gcc-multilib' 'libtool-multilib')
+source=(http://www.mega-nerd.com/libsndfile/files/${_pkgbasename}-${pkgver}.tar.gz{,.asc})
+sha1sums=('85aa967e19f6b9bf975601d79669025e5f8bc77d'
+  'SKIP')
+validpgpkeys=('73571E85C19F4281D8C97AA86CA41A7743B8D6C8'
+  '6A91A5CF22C24C99A35E013FCFDCF91FB242ACED')
+
+prepare() {
+  cd ${_pkgbasename}-${pkgver}
+  sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' 
src/binheader_writef_check.py \
+src/create_symbols_file.py programs/test-sndfile-metadata-set.py
+  sed -i 's|python|&2|' src/Makefile.am
+}
+
+build() {
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+  cd ${_pkgbasename}-${pkgver}
+
+  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
+}
+
+check() {
+  cd ${_pkgbasename}-${pkgver}
+  make check
+}
+
+package() {
+  cd ${_pkgbasename}-${pkgver}
+  make -C src DESTDIR="${pkgdir}" install
+  make DESTDIR="$pkgdir" install-pkgconfigDATA
+
+  rm -rf "$pkgdir/usr/include"
+}


[arch-commits] Commit in lib32-libsndfile/repos (2 files)

2016-02-02 Thread Felix Yan
Date: Wednesday, February 3, 2016 @ 08:48:51
  Author: fyan
Revision: 160053

archrelease: copy trunk to multilib-testing-x86_64

Added:
  lib32-libsndfile/repos/multilib-testing-x86_64/
  lib32-libsndfile/repos/multilib-testing-x86_64/PKGBUILD
(from rev 160052, lib32-libsndfile/trunk/PKGBUILD)

--+
 PKGBUILD |   52 
 1 file changed, 52 insertions(+)

Copied: lib32-libsndfile/repos/multilib-testing-x86_64/PKGBUILD (from rev 
160052, lib32-libsndfile/trunk/PKGBUILD)
===
--- multilib-testing-x86_64/PKGBUILD(rev 0)
+++ multilib-testing-x86_64/PKGBUILD2016-02-03 07:48:51 UTC (rev 160053)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) 
+
+_pkgbasename=libsndfile
+pkgname=lib32-$_pkgbasename
+pkgver=1.0.26
+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-alsa-lib' 'lib32-flac' 'lib32-libvorbis' $_pkgbasename)
+checkdepends=('python2')
+makedepends=('gcc-multilib' 'libtool-multilib')
+source=(http://www.mega-nerd.com/libsndfile/files/${_pkgbasename}-${pkgver}.tar.gz{,.asc})
+validpgpkeys=(73571E85C19F4281D8C97AA86CA41A7743B8D6C8)
+sha1sums=('c9092c06f6ed51034c9e809e150083ff1f55e79e'
+  'SKIP')
+
+prepare() {
+  cd ${_pkgbasename}-${pkgver}
+  sed -i 's|#!/usr/bin/python|#!/usr/bin/python2|' 
src/binheader_writef_check.py \
+src/create_symbols_file.py programs/test-sndfile-metadata-set.py
+  sed -i 's|python|&2|' src/Makefile.am
+}
+
+build() {
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+  cd ${_pkgbasename}-${pkgver}
+
+  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
+}
+
+check() {
+  cd ${_pkgbasename}-${pkgver}
+  make check
+}
+
+package() {
+  cd ${_pkgbasename}-${pkgver}
+  make -C src DESTDIR="${pkgdir}" install
+  make DESTDIR="$pkgdir" install-pkgconfigDATA
+
+  rm -rf "$pkgdir/usr/include"
+}