archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libao / trunk / PKGBUILD
blob3116c884078224fcbaac476b41f53af38d7319c6
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Gaetan Bisson <bisson@archlinux.org>
3 # Contributor: dorphell <dorphell@archlinux.org>
5 pkgname=libao
6 pkgver=1.2.2
7 pkgrel=6
8 pkgdesc="Cross-platform audio output library and plugins"
9 url="https://xiph.org/ao/"
10 arch=(x86_64)
11 license=(GPL2)
12 depends=(glibc)
13 makedepends=(alsa-lib libpulse)
14 provides=(libao.so)
15 backup=(etc/$pkgname.conf)
16 source=(
17   https://gitlab.xiph.org/xiph/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.gz
18   $pkgname.conf
20 sha512sums=('d2736d25b60862e7d7469611ce31b1df40a4366ab160e2ff1b46919ae91692d1596c8468e4f016303b306fc3ac1bddc7b727f535a362f403c3fe7c6532e9045a'
21             'f50d23993eeab4786e68edec88665783a697c141e8f26d38edbe4deb1c760ec690741c70f39e1ec5edaf07ce18216709ea8c23bd622543796248408ce32e53c4')
22 b2sums=('e5b5d87c4357ee113769732cb6a7e0afa28b2bc4923be8dacd1fa39ac5fb96d8a5e19bc45137ffc8ec63eef0382130ab9b311aad3a66be4566e0cb9761417b23'
23         '5ace51c34b8f9409c5f322ccb1381984b35402866ced3b1b38b2b8fffd10780de80d33418e031decb2cfba452029a48b40df8077d7d67390fcf87bcf57c0cbca')
25 prepare() {
26   cd $pkgname-$pkgver
27   autoreconf -fiv
30 build() {
31   local configure_options=(
32     --prefix=/usr
33     --enable-alsa-mmap
34   )
36   cd $pkgname-$pkgver
37   ./configure "${configure_options[@]}"
38   make
41 package() {
42   depends+=(
43     alsa-lib libasound.so
44     libpulse libpulse.so libpulse-simple.so
45   )
47   cd $pkgname-$pkgver
48   make DESTDIR="$pkgdir" install
49   # default config
50   install -vDm 644 ../$pkgname.conf -t "$pkgdir/etc/"
51   install -vDm 644 {AUTHORS,CHANGES,HACKING,README,TODO} -t "$pkgdir/usr/share/doc/$pkgname/"