summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8523904aaff0a8e94e60ccce89bf2ee452e3ebf (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
# Maintainer: willemw <willemw12@gmail.com>

_pkgname=usbaudio
pkgname=$_pkgname-git
pkgver=r2.acb9ac8
pkgrel=1
pkgdesc="Forward audio from Android devices"
arch=('x86_64')
url="https://github.com/rom1v/usbaudio"
license=('MIT')
depends=('vlc')
makedepends=('git' 'libpulse' 'meson')
optdepends=('android-tools: adb is required')
provides=($_pkgname)
conflicts=($_pkgname)
source=($pkgname::git+https://github.com/rom1v/usbaudio.git)
sha256sums=('SKIP')

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

build() {
  meson --prefix=/usr --buildtype=release $pkgname $pkgname/build
  ninja -C $pkgname/build
}

#check() {
#  ninja -C $pkgname/build check
#}

package() {
  DESTDIR="$pkgdir" ninja -C $pkgname/build install
}