summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d90b0d09bc301c90d5b52437ef6967b93bfec21c (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
# Maintainer: Martin Sandsmark <martin.sandsmark@kde.org>

pkgname=miniaudio-git
pkgver=r1662.81a18ca
pkgrel=1
pkgdesc='Single file audio playback and capture library.'
arch=('any')
url='https://github.com/dr-soft/miniaudio'
license=('MIT')
depends=()
makedepends=('git')
conflicts=('mini_al' 'miniaudio')
provides=('mini_al' 'miniaudio')
source=('git+https://github.com/dr-soft/miniaudio.git')
md5sums=('SKIP')

pkgver() {
  cd miniaudio
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd miniaudio
  install -dm755 "${pkgdir}/usr/include/miniaudio/"
  install -m644 miniaudio.h "${pkgdir}/usr/include/miniaudio/miniaudio.h"
  install -dm755 "${pkgdir}/usr/include/miniaudio/extras/"
  install -m644 extras/*.h "${pkgdir}/usr/include/miniaudio/extras/"
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/miniaudio-git/LICENSE
}