-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pkg | ||
src | ||
*.tar.zst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Maintainer: Hailey Somerville <[email protected]> | ||
pkgname=bark-git | ||
pkgdesc="Synchronised multicast audio streaming" | ||
license=("AGPL3") | ||
url="https://github.com/haileys/bark" | ||
pkgver=r115.g0a555d4 | ||
pkgrel=1 | ||
|
||
pkgver() { | ||
local number="$(git -C "$srcdir" rev-list --count HEAD)" | ||
local commit="$(git -C "$srcdir" rev-parse --short=7 HEAD)" | ||
echo "r${number}.g${commit}" | ||
} | ||
|
||
depends=( | ||
"alsa-lib" | ||
"gcc-libs" | ||
"opus" | ||
"speexdsp" | ||
) | ||
makedepends=("cargo") | ||
arch=("x86_64") | ||
|
||
prepare() { | ||
cargo fetch --locked --target "$CARCH-unknown-linux-gnu" | ||
} | ||
|
||
build() { | ||
export RUSTUP_TOOLCHAIN=stable | ||
export CARGO_TARGET_DIR=target | ||
export BARK_PKG_VERSION="$(pkgver)" | ||
cargo build --frozen --release | ||
} | ||
|
||
package() { | ||
install -Dm0755 -t "$pkgdir/usr/bin/" "$srcdir/target/release/bark" | ||
} |