summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: faf4a37099ef20771247d4115b1f66f9344ba558 (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
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Maintainer: Simon Hafner <hanfersimon@gmail.com>

pkgname=libao-git
pkgver=1.2.2.r8.cafce90
pkgrel=1
pkgdesc='Cross-platform audio output library and plugins'
url='http://xiph.org/ao/'
arch=('i686' 'x86_64')
license=('GPL')
depends=('alsa-lib')
makedepends=('libpulse' 'git')
provides=("libao=${pkgver}-${pkgrel}")
conflicts=('libao')
backup=('etc/libao.conf')
source=("git+https://gitlab.xiph.org/xiph/libao.git"
        'libao.conf')
sha1sums=('SKIP'
          '603f5e6715e7e50e1c8e8c1935c45a897c46e9af')


pkgver() {
  cd "$srcdir/${pkgname%-git}"
  printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

prepare() {
  cd "$srcdir/${pkgname%-git}"
}

build() {
  cd "$srcdir/${pkgname%-git}"

  ./autogen.sh
  ./configure \
      --prefix=/usr \
      --enable-alsa-mmap

  make
}

package() {
  cd "$srcdir/${pkgname%-git}"
  make DESTDIR="${pkgdir}" install
  install -Dm644 "${srcdir}"/libao.conf "${pkgdir}"/etc/libao.conf
}