PKGBUILD 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # Maintainer: David P. <megver83@parabola.nu>
  2. # Maintainer (Arch): Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
  3. # Contributor (Arch): Daniel J Griffiths <ghost1227@archlinux.us>
  4. # Contributor (Arch): Corrado Primier <bardo@aur.archlinux.org>
  5. # Contributor (Arch): William Rea <sillywilly@gmail.com>
  6. _pkgbasename=libpulse
  7. pkgname=lib32-$_pkgbasename
  8. pkgdesc="A featureful, general-purpose sound server (32-bit client libraries)"
  9. pkgver=12.2
  10. pkgrel=1
  11. pkgrel+=.nonsystemd1
  12. arch=(x86_64)
  13. url="https://www.freedesktop.org/wiki/Software/PulseAudio/"
  14. license=(LGPL)
  15. depends=(lib32-dbus lib32-eudev lib32-glib2
  16. lib32-libasyncns lib32-libcap lib32-libxtst lib32-libsm lib32-libsndfile
  17. $_pkgbasename)
  18. makedepends=(gcc-multilib libtool-multilib intltool lib32-speexdsp lib32-gtk3 git)
  19. optdepends=('lib32-alsa-plugins: ALSA support')
  20. provides=("lib32-pulseaudio=$pkgver")
  21. conflicts=(lib32-pulseaudio)
  22. replaces=(lib32-pulseaudio)
  23. options=(!emptydirs)
  24. _commit=ee910cf6daa5120ab534eb2e6c573d94b9b182e7 # tags/v12.2^0
  25. source=("git+https://anongit.freedesktop.org/git/pulseaudio/pulseaudio#commit=$_commit")
  26. sha256sums=('SKIP')
  27. _pulsever=$pkgver
  28. [[ $_pulsever = *.*.* ]] && _pulsever=${_pulsever%.*}
  29. _libs="libpulse.la libpulse-simple.la libpulse-mainloop-glib.la"
  30. _pkglibs="libpulsecommon-${_pulsever}.la libpulsedsp.la"
  31. pkgver() {
  32. cd pulseaudio
  33. git describe --tags | sed 's/^v//;s/-/+/g'
  34. }
  35. prepare() {
  36. cd pulseaudio
  37. NOCONFIGURE=1 ./bootstrap.sh
  38. }
  39. build() {
  40. cd pulseaudio
  41. export CC="gcc -m32"
  42. export CXX="g++ -m32"
  43. export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  44. ./configure --prefix=/usr \
  45. --libdir=/usr/lib32 \
  46. --sysconfdir=/etc \
  47. --libexecdir=/usr/lib32 \
  48. --localstatedir=/var \
  49. --disable-tcpwrap \
  50. --disable-bluez4 \
  51. --disable-samplerate \
  52. --disable-rpath \
  53. --disable-default-build-tests \
  54. --with-systemduserunitdir=no \
  55. --disable-systemd-login \
  56. --disable-systemd-daemon \
  57. --disable-systemd-journal
  58. DATADIRNAME=share
  59. # fight unused direct deps
  60. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  61. make -C src $_libs $_pkglibs
  62. }
  63. package() {
  64. cd pulseaudio
  65. make -j1 -C src DESTDIR="$pkgdir" \
  66. lib_LTLIBRARIES="$_libs" install-libLTLIBRARIES
  67. make -j1 -C src DESTDIR="$pkgdir" \
  68. pkglib_LTLIBRARIES="$_pkglibs" install-pkglibLTLIBRARIES
  69. make -j1 DESTDIR="$pkgdir" install-pkgconfigDATA
  70. }