summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c13a40fb2d920485f26385c8ab1fda876480f847 (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
# Maintainer: Luis Aranguren <pizzaman@hotmail.com>
# Contributor: Alexander Epaneshnikov <aarnaarn2@gmail.com>
# Contributor: Kyle <kyle@gmx.ca>

pkgname=pcaudiolib-git
pkgver=1.2.r9.g494e7cd
pkgrel=1
pkgdesc='Portable C Audio Library (development version)'
arch=('aarch64' 'armv6h' 'armv7h' 'i686' 'x86_64')
url=https://github.com/espeak-ng/pcaudiolib
license=('GPL3')
optdepends=('alsa-lib: ALSA output support'
            'pulseaudio: Pulseaudio output support')
makedepends=('git' 'automake' 'autoconf')
provides=( pcaudiolib )
conflicts=( pcaudiolib )
source=("git+$url.git")
sha512sums=('SKIP')

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

prepare() {
  cd "${pkgname%-git}"
  ./autogen.sh
}

build() {
  cd "${pkgname%-git}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${pkgname%-git}"
  make DESTDIR="$pkgdir" install
}