summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f4c3791c9c8dbc41039e0086d40174459849bdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: 
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Jakob Gahde <j5lx@fmail.co.uk>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>

_pkgname=libao
pkgname=lib32-${_pkgname}-jack
pkgver=1.2.2
pkgrel=1
pkgdesc="Cross-platform audio output library and plugins (32-bit) - patched with JACK support"
url="http://xiph.org/ao/"
arch=('x86_64')
license=('GPL')
depends=("${_pkgname}-jack" 'lib32-alsa-lib')
makedepends=('gcc-multilib' 'lib32-libpulse' 'lib32-jack')
options=('!libtool')
source=("git+https://gitlab.xiph.org/xiph/libao.git#commit=3f4b02f046550aca54d7f11a5d9c56ac421f0b66"
        "https://trac.xiph.org/raw-attachment/ticket/2083/libao-jack-plugin.tgz"
        "https://trac.xiph.org/raw-attachment/ticket/2083/0001-jack-plugin.patch"
	'libao.conf'
	'no-circular-dependency.patch')
noextract=('libao-jack-plugin.tgz')
sha256sums=('SKIP'
            '05dad2e84127f730996c11facdb8db3cce00463f6ecca897a5dce606b4ad0758'
            '0bc8d4375ca9255d4a97ed7357e053bffe1260c5df4583a290018a86f341a934'
            'c6cde8eaa3516ab6a2e6f154a70961b3f448f4b739491a82e0c512f2740525af'
            'df5a6ba10efaa3c476c26a675c7a4f9492f6e341e126eed55a6bd28d5d13c0f8')

conflicts=('lib32-libao')
provides=("lib32-libao=${pkgver}-${pkgrel}")

prepare() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  bsdtar -xf "${srcdir}/libao-jack-plugin.tgz"
  patch -p1 -i "${srcdir}/0001-jack-plugin.patch"
  # This change is analogous to 651e2fa2a35e86b31816729063e01e18d4bdbbcc
  patch -Np1 < "${srcdir}/no-circular-dependency.patch"
  ./autogen.sh
}

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  export CC="gcc -m32"
  export CXX="g++ -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  ./configure \
    --prefix=/usr \
    --libdir=/usr/lib32 \
    --enable-alsa-mmap \

  make
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install
  install -Dm644 "${srcdir}/libao.conf" "${pkgdir}/etc/libao.conf"
}