Initial commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
# Ignore BPM archives and signatures
|
||||||
|
*.bpm
|
||||||
|
*.bpm.sig
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Gitlab repository
|
||||||
|
REPO="xiph/libao"
|
||||||
|
|
||||||
|
# Replace slash with URL encoded representation
|
||||||
|
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
|
||||||
|
|
||||||
|
# Get tag name using Gitlab Rest API
|
||||||
|
TAG_NAME=$(curl -s -L https://gitlab.xiph.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name')
|
||||||
|
|
||||||
|
# Trim 'v' character in TAG_NAME variable
|
||||||
|
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
name: libao
|
||||||
|
description: Cross-platform audio output library and plugins
|
||||||
|
version: 1.2.2
|
||||||
|
revision: 1
|
||||||
|
url: https://xiph.org/ao/
|
||||||
|
license: GPL-2.0-or-later
|
||||||
|
maintainers:
|
||||||
|
- [email protected]
|
||||||
|
architecture: any
|
||||||
|
type: source
|
||||||
|
depends:
|
||||||
|
- alsa-lib
|
||||||
|
- glibc
|
||||||
|
- libpulse
|
||||||
|
downloads:
|
||||||
|
- url: https://gitlab.xiph.org/xiph/libao/-/archive/${BPM_PKG_VERSION}/libao-${BPM_PKG_VERSION}.tar.gz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: df8a6d0e238feeccb26a783e778716fb41a801536fe7b6fce068e313c0e2bf4d
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
# This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||||
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
|
# The prepare function is executed in the root of the temp directory
|
||||||
|
# This function is used for putting downloaded files to the correct location or applying patches
|
||||||
|
prepare() {
|
||||||
|
cd "$BPM_SOURCE"
|
||||||
|
patch -Np1 -i "$BPM_WORKDIR"/libao-1.2.2-add-missing-time-include.patch
|
||||||
|
|
||||||
|
autoreconf -fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# The build function is executed in the source directory
|
||||||
|
# This function is used to compile the source code
|
||||||
|
build() {
|
||||||
|
./configure --prefix=/usr --enable-alsa-mmap
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
# The package function is executed in the source directory
|
||||||
|
# This function is used to move the compiled files into the output directory
|
||||||
|
package() {
|
||||||
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
|
# Install default config
|
||||||
|
install -Dm644 "$BPM_WORKDIR"/libao.conf "$BPM_OUTPUT"/etc/libao.conf
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/libao/COPYING
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
From 1f998f5d6d77674dad01b181811638578ad68242 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tristan Matthews <[email protected]>
|
||||||
|
Date: Sun, 15 Jan 2017 12:15:07 -0500
|
||||||
|
Subject: [PATCH] pulse: fix missing include warning for nanosleep
|
||||||
|
|
||||||
|
---
|
||||||
|
src/plugins/pulse/ao_pulse.c | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/plugins/pulse/ao_pulse.c b/src/plugins/pulse/ao_pulse.c
|
||||||
|
index 9835273..2d10d57 100644
|
||||||
|
--- a/src/plugins/pulse/ao_pulse.c
|
||||||
|
+++ b/src/plugins/pulse/ao_pulse.c
|
||||||
|
@@ -30,6 +30,7 @@
|
||||||
|
#include <assert.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <signal.h>
|
||||||
|
+#include <time.h>
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
|
#include <pulse/pulseaudio.h>
|
||||||
|
--
|
||||||
|
GitLab
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
default_driver=alsa
|
||||||
|
dev=default
|
||||||
|
quiet
|
||||||
Reference in New Issue
Block a user