2011-01-16 01:54:28 +08:00
|
|
|
# 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>
|
updates for lib32 packages: alsa-lib, alsa-oss, alsa-plugins, atk, cairo, catalyst-utils, freetype2-ubuntu, kmod, libcups, libdrm, libpulse, libvorbis, sdl, sqlite, udev
2012-05-27 20:46:05 +08:00
|
|
|
# contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
|
|
|
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
|
|
|
|
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
|
|
|
|
# Contributor: William Rea <sillywilly@gmail.com>
|
2011-01-16 01:54:28 +08:00
|
|
|
|
|
|
|
_pkgbasename=libpulse
|
2012-02-01 21:34:01 +08:00
|
|
|
pkgname="lib32-${_pkgbasename}"
|
|
|
|
pkgdesc="A featureful, general-purpose sound server. (32-bit client libraries)"
|
2012-09-10 06:02:27 +08:00
|
|
|
pkgver=2.1
|
2011-01-16 01:54:28 +08:00
|
|
|
pkgrel=1
|
2012-02-01 21:34:01 +08:00
|
|
|
arch=('x86_64')
|
2011-01-16 01:54:28 +08:00
|
|
|
url="http://pulseaudio.org/"
|
2012-02-01 21:34:01 +08:00
|
|
|
license=('GPL' 'LGPL')
|
|
|
|
depends=(lib32-{dbus-core,xcb-util,json-c}
|
|
|
|
lib32-lib{asyncns,cap,xtst,sm,sndfile,samplerate}
|
2012-09-10 06:02:27 +08:00
|
|
|
'webrtc-audio-processing' 'systemd>=189'
|
|
|
|
"${_pkgbasename}=${pkgver}")
|
2012-02-01 21:34:01 +08:00
|
|
|
makedepends=('pkgconfig' 'gcc-multilib' 'lib32-libtool' 'intltool'
|
|
|
|
'lib32-glib2' 'lib32-speex')
|
2011-01-16 01:54:28 +08:00
|
|
|
optdepends=('lib32-alsa-plugins: ALSA support')
|
2012-02-01 21:34:01 +08:00
|
|
|
provides=("lib32-pulseaudio=${pkgver}")
|
|
|
|
conflicts=('lib32-pulseaudio')
|
|
|
|
replaces=('lib32-pulseaudio')
|
updates for lib32 packages: alsa-lib, alsa-oss, alsa-plugins, atk, cairo, catalyst-utils, freetype2-ubuntu, kmod, libcups, libdrm, libpulse, libvorbis, sdl, sqlite, udev
2012-05-27 20:46:05 +08:00
|
|
|
options=(!emptydirs !libtool)
|
2012-02-01 21:34:01 +08:00
|
|
|
source=("http://freedesktop.org/software/pulseaudio/releases/pulseaudio-${pkgver}.tar.xz")
|
2012-09-10 06:02:27 +08:00
|
|
|
sha256sums=('ef6b347bf47abfb98080795f1583018ac959b4aeb4df916b879f9e1eaba0ca7f')
|
2011-01-16 01:54:28 +08:00
|
|
|
|
updates for lib32 packages: alsa-lib, alsa-oss, alsa-plugins, atk, cairo, catalyst-utils, freetype2-ubuntu, kmod, libcups, libdrm, libpulse, libvorbis, sdl, sqlite, udev
2012-05-27 20:46:05 +08:00
|
|
|
_libs="libpulse.la libpulse-simple.la libpulse-mainloop-glib.la"
|
|
|
|
_pkglibs="libpulsecommon-$pkgver.la libpulsedsp.la"
|
2011-01-16 01:54:28 +08:00
|
|
|
|
|
|
|
|
updates for lib32 packages: alsa-lib, alsa-oss, alsa-plugins, atk, cairo, catalyst-utils, freetype2-ubuntu, kmod, libcups, libdrm, libpulse, libvorbis, sdl, sqlite, udev
2012-05-27 20:46:05 +08:00
|
|
|
build() {
|
|
|
|
cd "$srcdir/pulseaudio-$pkgver"
|
2011-01-16 01:54:28 +08:00
|
|
|
|
|
|
|
export CC="gcc -m32"
|
updates for lib32 packages: alsa-lib, alsa-oss, alsa-plugins, atk, cairo, catalyst-utils, freetype2-ubuntu, kmod, libcups, libdrm, libpulse, libvorbis, sdl, sqlite, udev
2012-05-27 20:46:05 +08:00
|
|
|
export CXX="g++ -m32"
|
2011-01-16 01:54:28 +08:00
|
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
updates for lib32 packages: alsa-lib, alsa-oss, alsa-plugins, atk, cairo, catalyst-utils, freetype2-ubuntu, kmod, libcups, libdrm, libpulse, libvorbis, sdl, sqlite, udev
2012-05-27 20:46:05 +08:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--libexecdir=/usr/lib32 \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--disable-hal \
|
|
|
|
--disable-tcpwrap \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-default-build-tests
|
2011-01-16 01:54:28 +08:00
|
|
|
|
updates for lib32 packages: alsa-lib, alsa-oss, alsa-plugins, atk, cairo, catalyst-utils, freetype2-ubuntu, kmod, libcups, libdrm, libpulse, libvorbis, sdl, sqlite, udev
2012-05-27 20:46:05 +08:00
|
|
|
# fight unused direct deps
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
|
2012-09-10 06:02:27 +08:00
|
|
|
make -C src ${_libs} ${_pkglibs}
|
2011-01-16 01:54:28 +08:00
|
|
|
}
|
2012-02-01 21:34:01 +08:00
|
|
|
|
updates for lib32 packages: alsa-lib, alsa-oss, alsa-plugins, atk, cairo, catalyst-utils, freetype2-ubuntu, kmod, libcups, libdrm, libpulse, libvorbis, sdl, sqlite, udev
2012-05-27 20:46:05 +08:00
|
|
|
package() {
|
2012-09-10 06:02:27 +08:00
|
|
|
cd "${srcdir}/pulseaudio-${pkgver}"
|
|
|
|
make -j1 -C src DESTDIR="${pkgdir}" \
|
|
|
|
lib_LTLIBRARIES="${_libs}" pkglib_LTLIBRARIES="${_pkglibs}" \
|
updates for lib32 packages: alsa-lib, alsa-oss, alsa-plugins, atk, cairo, catalyst-utils, freetype2-ubuntu, kmod, libcups, libdrm, libpulse, libvorbis, sdl, sqlite, udev
2012-05-27 20:46:05 +08:00
|
|
|
install-libLTLIBRARIES install-pkglibLTLIBRARIES
|
2012-09-10 06:02:27 +08:00
|
|
|
make -j1 DESTDIR="${pkgdir}" install-pkgconfigDATA
|
|
|
|
}
|