diff options
author | dexterlb | 2020-04-07 18:38:45 +0300 |
---|---|---|
committer | dexterlb | 2020-04-07 18:38:45 +0300 |
commit | 87df2f2877e7a2f625abb6dad61b92ab44de75af (patch) | |
tree | 4ea8fe96c3bfe4fdb3d44299ba786c806183dc37 /PKGBUILD | |
download | aur-87df2f2877e7a2f625abb6dad61b92ab44de75af.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..559c9b956329 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: dexterlb <dexterlb@qtrp.org> + +_pkgname=roc +pkgname=${_pkgname}-git +pkgver=r930.778c329 +pkgrel=1 +pkgdesc="Real-time audio streaming over network" +arch=('x86_64' 'i686' 'armv6l' 'armv7l' 'aarch64') +conflicts=(roc) +provides=(roc) +url="https://roc-project.github.io/" +license=('Mozilla') +depends=('openfec' 'ragel' 'libuv' 'libunwind' 'sox') +makedepends=('scons' 'clang' 'llvm' 'gengetopt') +source=('git+https://github.com/roc-project/roc.git') +sha256sums=(SKIP) + +pkgver() { + cd "${_pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +_run_scons() { + scons \ + --prefix="${pkgdir}"/usr \ + --disable-tests --disable-examples \ + --with-openfec-includes=/usr/include/openfec \ + --build-3rdparty=pulseaudio \ + --enable-pulseaudio-modules \ + "${@}" +} + +build() { + cd "${_pkgname}" + _run_scons +} + +package() { + cd "${_pkgname}" + _run_scons install + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |