summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 650539c041c9265ca304bd3ae2c055438081cd4f (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
# Maintainer: JDuch <jduch@pm.me>

pkgname=pulseaudio-virtualmic
pkgver=0.1
pkgrel=1
pkgdesc="Use any offline or online media file or stream as a PulseAudio source"
arch=('any')
url="https://github.com/MatthiasCoppens/${pkgname}"
license=('GPL3')
depends=('pulseaudio' 'ffmpeg')
makedepends=('git')
optdepends=('coreutils: mktemp not needed when virtualmic is run with -p filename')
source=("git+${url}.git#tag=v${pkgver}")
sha512sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname}"

    git describe --tags | sed 's/^v//;s/-/+/g'
}

package() {
    mkdir "${pkgdir}/usr"
    mkdir "${pkgdir}/usr/bin"
    cp -r "${srcdir}/${pkgname}/virtualmic" "${pkgdir}/usr/bin/"
}