summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7648b11b2ef0d0f88082feeca4b6d746c12052b8 (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
# Maintainer: Kyle <kyle@gmx.ca>
pkgname=pcaudiolib-git
_gitname=pcaudiolib
pkgver=b5b2860 # determined from git origin
pkgrel=1
pkgdesc="Portable C Audio Library (git version)"
arch=('aarch64' 'armv6h' 'armv7h' 'i686' 'x86_64')
url="https://github.com/rhdunn/pcaudiolib"
license=('GPL3')
depends=()
optdepends=('alsa-lib: ALSA output support'
  'pulseaudio: Pulseaudio output support')
makedepends=('git')
provides=()
conflicts=()
source=('git+https://github.com/rhdunn/pcaudiolib.git')
md5sums=('SKIP')

pkgver() {
  cd $_gitname
  # Use the tag of the last commit
  git describe --always | sed -e 's|v||' -e 's|-|.|g'
}

build() {
  cd $_gitname
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd $_gitname
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: